javax.swing
Class JToggleButtonjava.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.AbstractButton | +--javax.swing.JToggleButton
- All Implemented Interfaces:
- Accessible, ImageObserver, ItemSelectable, MenuContainer, Serializable, SwingConstants
- Direct Known Subclasses:
- JCheckBox, JRadioButton
- public class JToggleButton
- extends AbstractButton
- implements Accessible
An implementation of a two-state button. The JRadioButton and JCheckBox classes are subclasses of this class. For information on using them see How to Use Buttons, Check Boxes, and Radio Buttons, a section in The Java Tutorial.
For the keyboard keys used by this component in the standard Look and Feel (L&F) renditions, see the JToggleButton key assignments.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder.
- See Also:
- JRadioButton, JCheckBox
Nested Class Summary
protected class JToggleButton.AccessibleJToggleButton
This class implements accessibility support for the JToggleButton class.static class JToggleButton.ToggleButtonModel
The ToggleButton model
Nested classes inherited from class javax.swing.AbstractButton AbstractButton.ButtonChangeListener
Nested classes inherited from class javax.swing.JComponent
Nested classes inherited from class java.awt.Container
Nested classes inherited from class java.awt.Component Component.BltBufferStrategy, Component.FlipBufferStrategy
Field Summary