Example usage for Java javax.swing JSpinner fields, constructors, methods, implement or subclass
The text is from its open source code.
JSpinner() Constructs a spinner with an Integer SpinnerNumberModel with initial value 0 and no minimum or maximum limits. | |
JSpinner(SpinnerModel model) Constructs a spinner for the given model. |
void | addChangeListener(ChangeListener listener) Adds a listener to the list that is notified each time a change to the model occurs. |
void | addFocusListener(FocusListener l) Adds the specified focus listener to receive focus events from this component when this component gains input focus. |
void | commitEdit() Commits the currently edited value to the SpinnerModel . |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
ChangeListener[] | getChangeListeners() Returns an array of all the ChangeListener s added to this JSpinner with addChangeListener(). |
JComponent | getEditor() Returns the component that displays and potentially changes the model's value. |
Font | getFont() Gets the font of this component. |
SpinnerModel | getModel() Returns the SpinnerModel that defines this spinners sequence of values. |
String | getName() Gets the name of the component. |
Object | getNextValue() Returns the object in the sequence that comes after the object returned by getValue() . |
Object | getPreviousValue() Returns the object in the sequence that comes before the object returned by getValue() . |
String | getToolTipText() Returns the tooltip string that has been set with setToolTipText . |
Object | getValue() Returns the current value of the model, typically this value is displayed by the editor . |
boolean | isEnabled() Determines whether this component is enabled. |
void | setBorder(Border border) Sets the border of this component. |
void | setEditor(JComponent editor) Changes the JComponent that displays the current value of the SpinnerModel . |
void | setEnabled(boolean enabled) Sets whether or not this component is enabled. |
void | setFont(Font font) Sets the font for this component. |
void | setModel(SpinnerModel model) Changes the model that represents the value of this spinner. |
void | setName(String name) Sets the name of the component to the specified string. |
void | setPreferredSize(Dimension preferredSize) Sets the preferred size of this component. |
void | setSize(int width, int height) Resizes this component so that it has width width and height height . |
void | setToolTipText(String text) Registers the text to display in a tool tip. |
void | setValue(Object value) Changes current value of the model, typically this value is displayed by the editor . |
void | setVisible(boolean aFlag) Makes the component visible or invisible. |