JToggleButton (Swing)

Use a JToggleButton bean JToggleButton to provide a two-state push button. The button appears to be pushed in when selected, and popped out when not selected. Use JToggleButton beans in a button group for a set of mutually exclusive functions. When the user selects an unselected button in the group, the previously selected button is popped out.


Related procedures
Adding a button component

Related references
Sun's JToggleButton bean documentation
Button beans
Beans for visual composition