JCheckBox and JRadioButton
The JCheckBox class is very similar to the Checkbox class (note the lower case b), except that
- it generates ActionEvents instead of ItemEvents
- and there is no CheckboxGroup
Instead, there is the class JRadioButton. Individual radio buttons are like Checkboxes - they generate ActionEvents and have methods like isSelected().
JRadioButtons should also be added to an object of class ButtonGroup. This enforces the rule that only one radio button can be selected at a time.