|
SWING
RADIO BUTTONS
Radio buttons
are groups of buttons where normally only one button can be selected
at a time. JradioButton and ButtonGroup classes both support radio
buttons. Each time the user selects a button, an action event
occurs, usually an action listener is attached.
When creating a group of radio buttons, you need to create a ButtonGroup
and then add each radio button to the group. This insures that
only one button can be selected from each individual group at
a time.
|
|