| 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. | 
| javax.swing.plaf.basic | Provides user interface objects built according to the
Basic look and feel. | 
| Modifier and Type | Method and Description | 
|---|---|
| JSpinner | JSpinner.DefaultEditor. getSpinner()Returns the  JSpinnerancestor of this editor ornullif none of the ancestors are aJSpinner. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | JSpinner.DefaultEditor. dismiss(JSpinner spinner)Disconnect  thiseditor from the specifiedJSpinner. | 
| Constructor and Description | 
|---|
| DateEditor(JSpinner spinner)Construct a  JSpinnereditor that supports displaying
 and editing the value of aSpinnerDateModelwith aJFormattedTextField. | 
| DateEditor(JSpinner spinner,
          String dateFormatPattern)Construct a  JSpinnereditor that supports displaying
 and editing the value of aSpinnerDateModelwith aJFormattedTextField. | 
| DefaultEditor(JSpinner spinner)Constructs an editor component for the specified  JSpinner. | 
| ListEditor(JSpinner spinner)Construct a  JSpinnereditor that supports displaying
 and editing the value of aSpinnerListModelwith aJFormattedTextField. | 
| NumberEditor(JSpinner spinner)Construct a  JSpinnereditor that supports displaying
 and editing the value of aSpinnerNumberModelwith aJFormattedTextField. | 
| NumberEditor(JSpinner spinner,
            String decimalFormatPattern)Construct a  JSpinnereditor that supports displaying
 and editing the value of aSpinnerNumberModelwith aJFormattedTextField. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected JSpinner | BasicSpinnerUI. spinnerThe spinner that we're a UI delegate for. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.