TOC PREV NEXT INDEX



Toggle (JToggleButton)


A JToggleButton allows the user to indicate an on/off condition. A set of ToggleButtons can be grouped together, such that only one can be selected at a time. The button can hold a single line of text, whose alignment and position can be specified relative to an icon. Several different icons can be specified to indicate the various states of the JToggleButton. A keyboard mnemonic and the initial state of the JToggleButton can also be specified.

A JToggleButton will generate an ActionEvent when the JToggleButton is pressed.

A JToggleButton will generate a ChangeEvent whenever the button changes state (i.e. is pressed, is released, etc...)

A JToggleButton will generate an ItemEvent when the JToggleButton is selected or deselected.


Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX