SWT中如何使按钮不选中?
现在有一个Shell,并且程序是从这个Shell启动的,Shell上有个按钮,如何在启动的时候让这个按钮不处于选中状态啊?
- Java code
button_Start = new Button(sShell, SWT.NONE); button_Start.setBounds(new Rectangle(175, 9, 59, 25)); button_Start.setSelection(false); button_Start.setText("Start"); button_Stop = new Button(sShell, SWT.NONE); button_Stop.setBounds(new Rectangle(257, 9, 57, 25)); button_Stop.setText("Stop"); button_Stop.setSelection(false);button_Stop.setSelection(false);
这句我加上了啊,为啥还是处于选中状态
[解决办法]