JToggleButton : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

JToggleButton
the Swing equivalent of the AWT (Advanced Windowing Toolkit) Checkbox. Checkbox uses getState and setState, where JToggleButton uses isSelected and setSelected. In Swing, you can use either JCheckBox, JRadioButton or JToggleButton.

Here is what it looks like:

JToggleButton screenshot

Each button in one JToggleButton.

JCheckBox uses a checkmark; JRadioButton uses a dot in a circle and JToggleButton uses ordinary-looking buttons.

Here is how to use JToggleButton:

Learning More

Oracle’s Javadoc on JTogggleButton class : available:
Oracle’s Javadoc on ButtonGroup class : available:

This page is posted
on the web at:

http://mindprod.com/jgloss/jtogglebutton.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\jtogglebutton.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[35.168.113.41]
You are visitor number