Problem with SWT Combobox addSelectionListener()
cmbCategory.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
//Do things
}
});
The above code works just fine when I make selection using the control itself, but does not fire when I try changing the index programmatically.
Can anyone he开发者_如何学运维lp me?
Maybe this could work:
cmbCategory.addModifyListener(new ModifyListener(){
@Override
public void modifyText(ModifyEvent event) {
//Do things
}
});
精彩评论