Java Swing Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 4.00

JRadioButton - Swing Radio Button Class

This chapter provides tutorial notes and example codes on JRadioButton class. Topics include description of the javax.swing.JRadioButton class and its methods; example program of creating radio buttons and event listeners; example program of identify the selected button in a button group.

javax.swing.JRadioButton and Related Classes

ActionListener, ChangeListener and ItemListener

getSelection() - Getting Selected Button

Dr. Herong Yang, updated in 2009
JRadioButton - Swing Radio Button Class