JCheckbox : Java Glossary

JCheckBox
Note the upper case B, in JCheckBox. JCheckBox is the Swing equivalent of the AWT (Advanced Windowing Toolkit) Checkbox. Checkbox uses getState and setState, where JCheckBox uses isSelected and setSelected.

Here is what is looks like:

screen shot of a JCheckBox

Each box is one JCheckBox.

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

Here is how to use a

When you convert from an AWT CheckBox, you must change the getState calls to isSelected calls.

Learning More

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

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/jcheckbox.html J:\mindprod\jgloss\jcheckbox.html
logofeedback Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email If you want your message kept confidential, not considered for posting, please explicitly specify that.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.214]
You are visitor number 19,085.