阅读背景:

SWT的button组件中,添加单击事件监听

来源:互联网 
//匿名内部类写法
Button btChnagText = new Button(shell, SWT.NONE);btChnagText.addSelectionListener(new SelectionAdapter(){public void widgetSelected(SelectionEvent e){tAa.setText("new text");MessageDialog.openInformation(null, "", "hello");}});Button btChnagText = new Button(she



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: