javax.swing
public static class JSpinner.NumberEditor extends JSpinner.DefaultEditor
See Also: createEditor
| Constructor Summary | |
|---|---|
| NumberEditor(JSpinner spinner)
Creates a new NumberEditor object for the specified
spinner. | |
| NumberEditor(JSpinner spinner, String decimalFormatPattern)
Creates a new NumberEditor object.
| |
| Method Summary | |
|---|---|
| DecimalFormat | getFormat()
Returns the format used by the text field.
|
| SpinnerNumberModel | getModel()
Returns the model used by the editor's {@link JSpinner} component,
cast to a {@link SpinnerNumberModel}.
|
NumberEditor object for the specified
spinner. The editor is registered with the spinner as a
{@link ChangeListener}.
Parameters: spinner the component the editor will be used with.
NumberEditor object.
Parameters: spinner the spinner. decimalFormatPattern the number format pattern.
Returns: The format used by the text field.
Returns: The model.