Research indexBook chapter
Toggle Buttons
Zukowski
Apress eBooks1 Jan 1999
NobleIDark:/48914/w1/20260525/FECAE7ADDOI10.1007/978-1-4302-5251-1_6
Toggle Buttons
Zukowski · Apress eBooks · 1999 · Subscription
NobleIDark:/48914/w1/20260525/FECAE7ADDOI10.1007/978-1-4302-5251-1_6
The full text is at the publisher
You can read the abstract here, or open it at the publisher.
Abstract
now that you've seen the capabilities of the relatively simple Swing components JLabel and JButton, it's time to take a look at more-active components, specifically those that can be toggled. These so-called toggleable components—JToggleButton, JCheckBox, and JRadioButton — provide the means for your users to select from among a set of options. These options are either on or off, or enabled or disabled. When presented in a ButtonGroup, only one of the options in the group can be selected at a time. To deal with this selection state, the components share a common data model with ToggleButtonModel. Let's take a look at the data model, the components' grouping mechanism with ButtonGroup, and the individual components.