Example usage for Java javax.swing ButtonGroup fields, constructors, methods, implement or subclass
The text is from its open source code.
ButtonGroup() Creates a new ButtonGroup . |
void | add(AbstractButton b) Adds the button to the group. |
void | clearSelection() Clears the selection such that none of the buttons in the ButtonGroup are selected. |
int | getButtonCount() Returns the number of buttons in the group. |
Enumeration | getElements() Returns all the buttons that are participating in this group. |
ButtonModel | getSelection() Returns the model of the selected button. |
boolean | isSelected(ButtonModel m) Returns whether a ButtonModel is selected. |
void | remove(AbstractButton b) Removes the button from the group. |
void | setSelected(ButtonModel m, boolean b) Sets the selected value for the ButtonModel . |