ButtonGroupused to create a multiple exclusion area for a set of buttons. Creating a set of buttons with the same object ButtonGroupmeans that when you turn on, one of these buttons disables all other buttons in the group.
A ButtonGroup , AbstractButton. ButtonGroup JRadioButton, JRadioButtonMenuItem JToggleButton. JButton JMenuItem ButtonGroup, JButton JMenuItem .
. . "", . "none selected", JRadioButton, , JRadioButtons. , "none" JRadioButton.
ButtonGroups . " JRadioButtons) " Java".