Uses of Interface
javax.swing.ButtonModel
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
-
Uses of ButtonModel in javax.swing
Modifier and TypeClassDescriptionclass
The default implementation of aButton
component's data model.static class
The ToggleButton modelModifier and TypeFieldDescriptionprotected ButtonModel
AbstractButton.model
The data model that determines the button's state.Modifier and TypeMethodDescriptionAbstractButton.getModel()
Returns the model that this button represents.ButtonGroup.getSelection()
Returns the model of the selected button.Modifier and TypeMethodDescriptionboolean
ButtonGroup.isSelected
(ButtonModel m) Returns whether aButtonModel
is selected.void
AbstractButton.setModel
(ButtonModel newModel) Sets the model that this button represents.void
JMenu.setModel
(ButtonModel newModel) Sets the data model for the "menu button" -- the label that the user clicks to open or close the menu.void
JMenuItem.setModel
(ButtonModel newModel) Sets the model that this button represents.void
ButtonGroup.setSelected
(ButtonModel m, boolean b) Sets the selected value for theButtonModel
.