Java javax.swing ButtonModel fields, constructors, methods, implement or subclass

Example usage for Java javax.swing ButtonModel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing ButtonModel.

The text is from its open source code.

Method

voidaddChangeListener(ChangeListener l)
Adds a ChangeListener to the model.
StringgetActionCommand()
Returns the action command string for the button.
booleanisArmed()
Indicates partial commitment towards triggering the button.
booleanisEnabled()
Indicates if the button can be selected or triggered by an input device, such as a mouse pointer.
booleanisPressed()
Indicates if the button is pressed.
booleanisSelected()
Indicates if the button has been selected.
voidsetArmed(boolean b)
Marks the button as armed or unarmed.
voidsetSelected(boolean b)
Selects or deselects the button.