Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ff。不起作用。“第二行”与“第一行”呈现在同一行。更重要的是,两者之间没有空间。
new BooleanFieldEditor("Name", "First line\nSecond line", getFieldEditorParent());
BooleanFieldEditor 使用 SWT 标签。您不能为这种类型的小部件指定多行。
我建议您需要通过继承 FieldEditor 来创建自定义实现。
有两件事可以帮助解决这个问题: