| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultButtonModel
The default implementation of a
Button component's data model.
|
static class |
JToggleButton
The ToggleButton model
|
| Modifier and Type | Field and Description |
|---|---|
protected ButtonModel |
AbstractButton.model
The data model that determines the button's state.
|
| Modifier and Type | Method and Description |
|---|---|
ButtonModel |
AbstractButton.getModel()
Returns the model that this button represents.
|
ButtonModel |
ButtonGroup.getSelection()
Returns the model of the selected button.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ButtonGroup.isSelected(ButtonModel
Returns whether a
ButtonModel is selected.
|
void |
JMenuItem.setModel(ButtonModel
Sets the model that this button represents.
|
void |
AbstractButton.setModel(ButtonModel
Sets the model that this button represents.
|
void |
JMenu.setModel(ButtonModel
Sets the data model for the "menu button" -- the label that the user clicks to open or close the menu.
|
void |
ButtonGroup.setSelected(ButtonModel
Sets the selected value for the
ButtonModel.
|