PrestigeDev
PrestigeDev

Reputation: 627

How to make a ComboBoxCellEditor read-only?

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

Answers (1)

Baz
Baz

Reputation: 36884

Surely creating it with:

new ComboBoxCellEditor(parent, items, SWT.READ_ONLY)

will do the trick?

Upvotes: 3

Related Questions