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?
posted 16 years ago
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>