I am a newbie to java programming.With using SWT library,I try to make a GUI sample. My problem is:
I wanna group some buttons by using "group.add(button);" method.
Button cb3 = new Button(c3, SWT.RADIO);
cb3.setSize(20, 20);
cb3.setLocation(110, 3);
ButtonGroup radios = new ButtonGroup();
radios.add(cb3);
But I get this error:
- The method add(AbstractButton) in the type ButtonGroup is not applicable for the arguments ().
My kind regards.