The toggle button sample uses the JFToggleButton class.
The toggle button sample uses the following classes:
JFToggleButton
JFButtonGroup
Figure 1.24 Toggle button sample
Operation method
No JFButtonGroup
Clicking the check box switches the ON/OFF status.
CheckBox1
CheckBox2
CheckBox3
Using JFButtonGroup
Clicking one radio button switches the other two radio buttons to OFF status and switches the clicked radio button to ON status.
Only one radio button within the same group can be switched to ON status.
RadioButton1
RadioButton2
RadioButton3
Source codes
Toggle button sample:"Sample Storage Destinations"/jftogglebutton/JFToggleButtonSample.java