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

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

Introduction

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

The text is from its open source code.

Subclass

javax.swing.JSpinner has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voidaddChangeListener(ChangeListener listener)
Adds a listener to the list that is notified each time a change to the model occurs.
voidaddFocusListener(FocusListener l)
Adds the specified focus listener to receive focus events from this component when this component gains input focus.
voidcommitEdit()
Commits the currently edited value to the SpinnerModel.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ChangeListener[]getChangeListeners()
Returns an array of all the ChangeListeners added to this JSpinner with addChangeListener().
JComponentgetEditor()
Returns the component that displays and potentially changes the model's value.
FontgetFont()
Gets the font of this component.
SpinnerModelgetModel()
Returns the SpinnerModel that defines this spinners sequence of values.
StringgetName()
Gets the name of the component.
ObjectgetNextValue()
Returns the object in the sequence that comes after the object returned by getValue().
ObjectgetPreviousValue()
Returns the object in the sequence that comes before the object returned by getValue().
StringgetToolTipText()
Returns the tooltip string that has been set with setToolTipText.
ObjectgetValue()
Returns the current value of the model, typically this value is displayed by the editor.
booleanisEnabled()
Determines whether this component is enabled.
voidsetBorder(Border border)
Sets the border of this component.
voidsetEditor(JComponent editor)
Changes the JComponent that displays the current value of the SpinnerModel.
voidsetEnabled(boolean enabled)
Sets whether or not this component is enabled.
voidsetFont(Font font)
Sets the font for this component.
voidsetModel(SpinnerModel model)
Changes the model that represents the value of this spinner.
voidsetName(String name)
Sets the name of the component to the specified string.
voidsetPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
voidsetSize(int width, int height)
Resizes this component so that it has width width and height height .
voidsetToolTipText(String text)
Registers the text to display in a tool tip.
voidsetValue(Object value)
Changes current value of the model, typically this value is displayed by the editor.
voidsetVisible(boolean aFlag)
Makes the component visible or invisible.