Reputation: 627
I have a ComboBoxCellEditor
, on which users should only be able to select the items within it, but not to edit them in the combo box.
Is there s.th like this?
cellEditor.setReadOnly(true);
Upvotes: 1
Views: 301
Reputation: 36884
Surely creating it with:
new ComboBoxCellEditor(parent, items, SWT.READ_ONLY)
will do the trick?
Upvotes: 3