| 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  | AbstractSpinnerModelThis class provides the ChangeListener part of the
 SpinnerModel interface that should be suitable for most concrete SpinnerModel
 implementations. | 
| class  | SpinnerDateModelA  SpinnerModelfor sequences ofDates. | 
| class  | SpinnerListModelA simple implementation of  SpinnerModelwhose
 values are defined by an array or aList. | 
| class  | SpinnerNumberModelA  SpinnerModelfor sequences of numbers. | 
| Modifier and Type | Method and Description | 
|---|---|
| SpinnerModel | JSpinner. getModel()Returns the  SpinnerModelthat defines
 this spinners sequence of values. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected JComponent | JSpinner. createEditor(SpinnerModel model)This method is called by the constructors to create the
  JComponentthat displays the current value of the sequence. | 
| void | JSpinner. setModel(SpinnerModel model)Changes the model that represents the value of this spinner. | 
| Constructor and Description | 
|---|
| JSpinner(SpinnerModel model)Constructs a spinner for the given model. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.