89 * // or treat the last valid value as the current, in which
90 * // case you don't need to do anything.
91 * }
92 * return spinner.getValue();
93 * </pre>
94 * <p>
95 * For information and examples of using spinner see
96 * <a href="https://docs.oracle.com/javase/tutorial/uiswing/components/spinner.html">How to Use Spinners</a>,
97 * a section in <em>The Java Tutorial.</em>
98 * <p>
99 * <strong>Warning:</strong> Swing is not thread safe. For more
100 * information see <a
101 * href="package-summary.html#threading">Swing's Threading
102 * Policy</a>.
103 * <p>
104 * <strong>Warning:</strong>
105 * Serialized objects of this class will not be compatible with
106 * future Swing releases. The current serialization support is
107 * appropriate for short term storage or RMI between applications running
108 * the same version of Swing. As of 1.4, support for long term storage
109 * of all JavaBeans™
110 * has been added to the <code>java.beans</code> package.
111 * Please see {@link java.beans.XMLEncoder}.
112 *
113 * @see SpinnerModel
114 * @see AbstractSpinnerModel
115 * @see SpinnerListModel
116 * @see SpinnerNumberModel
117 * @see SpinnerDateModel
118 * @see JFormattedTextField
119 *
120 * @author Hans Muller
121 * @author Lynn Monsanto (accessibility)
122 * @since 1.4
123 */
124 @JavaBean(defaultProperty = "UI", description = "A single line input field that lets the user select a number or an object value from an ordered set.")
125 @SwingContainer(false)
126 @SuppressWarnings("serial") // Same-version serialization only
127 public class JSpinner extends JComponent implements Accessible
128 {
129 /**
|
89 * // or treat the last valid value as the current, in which
90 * // case you don't need to do anything.
91 * }
92 * return spinner.getValue();
93 * </pre>
94 * <p>
95 * For information and examples of using spinner see
96 * <a href="https://docs.oracle.com/javase/tutorial/uiswing/components/spinner.html">How to Use Spinners</a>,
97 * a section in <em>The Java Tutorial.</em>
98 * <p>
99 * <strong>Warning:</strong> Swing is not thread safe. For more
100 * information see <a
101 * href="package-summary.html#threading">Swing's Threading
102 * Policy</a>.
103 * <p>
104 * <strong>Warning:</strong>
105 * Serialized objects of this class will not be compatible with
106 * future Swing releases. The current serialization support is
107 * appropriate for short term storage or RMI between applications running
108 * the same version of Swing. As of 1.4, support for long term storage
109 * of all JavaBeans
110 * has been added to the <code>java.beans</code> package.
111 * Please see {@link java.beans.XMLEncoder}.
112 *
113 * @see SpinnerModel
114 * @see AbstractSpinnerModel
115 * @see SpinnerListModel
116 * @see SpinnerNumberModel
117 * @see SpinnerDateModel
118 * @see JFormattedTextField
119 *
120 * @author Hans Muller
121 * @author Lynn Monsanto (accessibility)
122 * @since 1.4
123 */
124 @JavaBean(defaultProperty = "UI", description = "A single line input field that lets the user select a number or an object value from an ordered set.")
125 @SwingContainer(false)
126 @SuppressWarnings("serial") // Same-version serialization only
127 public class JSpinner extends JComponent implements Accessible
128 {
129 /**
|