Uses of Interface
javax.swing.ButtonModel
Packages that use ButtonModel
包
描述
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
Classes in javax.swing that implement ButtonModel修饰符和类Class描述classThe default implementation of aButtoncomponent's data model.static classThe ToggleButton modelFields in javax.swing declared as ButtonModel修饰符和类Field描述protected ButtonModelAbstractButton.modelThe data model that determines the button's state.Methods in javax.swing that return ButtonModel修饰符和类方法描述AbstractButton.getModel()Returns the model that this button represents.ButtonGroup.getSelection()Returns the model of the selected button.Methods in javax.swing with parameters of type ButtonModel修饰符和类方法描述booleanButtonGroup.isSelected(ButtonModel m) Returns whether aButtonModelis selected.voidAbstractButton.setModel(ButtonModel newModel) Sets the model that this button represents.voidJMenu.setModel(ButtonModel newModel) Sets the data model for the "menu button" -- the label that the user clicks to open or close the menu.voidJMenuItem.setModel(ButtonModel newModel) Sets the model that this button represents.voidButtonGroup.setSelected(ButtonModel m, boolean b) Sets the selected value for theButtonModel.