What is the significance of a button group? How do you create a button group?
Answer»
A button group is a group control out of which only one can be selected at a time.
A button group is created through JButtonGroup component class of java Swing. In a button group we can put radio buttons or push buttons. Although checkboxes can also be put in a button group but it is not recommended.