如何使ComboBoxCellEditor只读?
问题描述:
我有一个ComboBoxCellEditor
,用户应该只能选择其中的项目,但不能在组合框中编辑它们。如何使ComboBoxCellEditor只读?
有没有像这样的?
new ComboBoxCellEditor(parent, items, SWT.READ_ONLY)
将这样的伎俩:
cellEditor.setReadOnly(true);
答
当然与创造呢?
绝对正确。 SWT.DROP_DOWN是可选的。 – PrestigeDev
@PrestigeDev是的,不确定。很高兴它的工作。 – Baz