开发者

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

    }
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜