swing.addon
Class ButtonGroup

java.lang.Object
  |
  +--javax.swing.ButtonGroup
        |
        +--swing.addon.ButtonGroup
All Implemented Interfaces:
java.io.Serializable

public class ButtonGroup
extends javax.swing.ButtonGroup

This class is used to create a multiple-exclusion scope for a set of buttons. Creating a set of buttons with the same ButtonGroup object means that turning "on" one of those buttons turns off all other buttons in the group.

See Also:
Serialized Form

Fields inherited from class javax.swing.ButtonGroup
buttons
 
Constructor Summary
ButtonGroup()
           
 
Method Summary
static ButtonGroup makeGroup(javax.swing.AbstractButton b1, javax.swing.AbstractButton b2)
          Creates a ButtonGroup which contains the two buttons given as arguments.
 
Methods inherited from class javax.swing.ButtonGroup
add, getButtonCount, getElements, getSelection, isSelected, remove, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonGroup

public ButtonGroup()
Method Detail

makeGroup

public static ButtonGroup makeGroup(javax.swing.AbstractButton b1,
                                    javax.swing.AbstractButton b2)
Creates a ButtonGroup which contains the two buttons given as arguments.