0
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 help me?

Rabin
  • 1,563
  • 4
  • 20
  • 44

1 Answers1

1

Maybe this could work:

cmbCategory.addModifyListener(new ModifyListener(){
    @Override
    public void modifyText(ModifyEvent event) {

        //Do things

    }
});
Dyonisos
  • 3,541
  • 2
  • 22
  • 25