| public static class javax.swing JSpinner.NumberEditor
|
Java SE 6 |
JSpinner whose model is a
SpinnerNumberModel. The value of the editor is
displayed with a JFormattedTextField whose format
is defined by a NumberFormatter instance whose
minimum and maximum properties
are mapped to the SpinnerNumberModel.
| since | 1.4 |
| Constructors | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| public | JSpinner.NumberEditor(JSpinner spinner) Details
Construct a JSpinner editor that supports displaying
and editing the value of a SpinnerNumberModel
with a JFormattedTextField. This
NumberEditor becomes both a ChangeListener
on the spinner and a PropertyChangeListener
on the new JFormattedTextField.
| ||||||||
| public | JSpinner.NumberEditor(JSpinner spinner, String decimalFormatPattern) Details
Construct a JSpinner editor that supports displaying
and editing the value of a SpinnerNumberModel
with a JFormattedTextField. This
NumberEditor becomes both a ChangeListener
on the spinner and a PropertyChangeListener
on the new JFormattedTextField.
| ||||||||
| Properties | |||||
|---|---|---|---|---|---|
| public DecimalFormat | getFormat() Details
Returns the java.text.DecimalFormat object the
JFormattedTextField uses to parse and format
numbers.
| ||||
| public SpinnerNumberModel | getModel() Details
Return our spinner ancestor's SpinnerNumberModel.
| ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2013 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|