what is the use of ButtonGroup?
Answers
Answered by
0
Answer:
Java: Radio Buttons and Button Groups. Radio buttons (javax.swing.JRadioButton) are used in groups (java.awt.ButtonGroup) where at most one can be selected. A button group's purpose is to control which button is selected, and has nothing to do with the GUI.
Answered by
0
The JRadioButton class is used to create a radio button. It is used to choose one option from multiple options. It is widely used in exam systems or quiz. It should be added in ButtonGroup to select one radio button only.
Follow me ✌✌✌❤❤❤
Similar questions