Example usage for Java javax.swing ButtonModel fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addChangeListener(ChangeListener l) Adds a ChangeListener to the model. |
String | getActionCommand() Returns the action command string for the button. |
boolean | isArmed() Indicates partial commitment towards triggering the button. |
boolean | isEnabled() Indicates if the button can be selected or triggered by an input device, such as a mouse pointer. |
boolean | isPressed() Indicates if the button is pressed. |
boolean | isSelected() Indicates if the button has been selected. |
void | setArmed(boolean b) Marks the button as armed or unarmed. |
void | setSelected(boolean b) Selects or deselects the button. |