I have 5 radio buttons I have added to a button group, initially they are all false. I want to reset them all to false after one run through system. The method setSelected(false) is not resetting my radio buttons to false and therefore not clearing them. Any ideas?
The method you are looking for is part of CheckboxGroup, not Checkbox its self. You can do it like this: <PRE> CheckboxGroup c = new CheckboxGroup(); ... c.setSelectedCheckbox(null); // sets all Checkboxes in this group to false </PRE>
Joined: Mar 01, 2001
The problem is CheckboxGroup will not let me add a JRadioButton. Do you know of anything that will work will JRadioButton? Thanks for trying