Java SWT: How to trigger ModifyListener through source code?
- by Obay
I have attached a ModifyListener to a Combo box and it works fine. But how do I trigger it through source code? Is there a better way than this?:
int selected = myCombo.getSelectionIndex();
myCombo.select(selected + 1);
myCombo.select(selected);