No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.
javax.swing

Class JSpinner.NumberEditor

    • Constructor Detail

      • JSpinner.NumberEditor

        public JSpinner.NumberEditor(JSpinner spinner)
        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.
        Parameters:
        spinner - the spinner whose model this editor will monitor
        Throws:
        IllegalArgumentException - if the spinners model is not an instance of SpinnerNumberModel
        See Also:
        getModel(), getFormat(), SpinnerNumberModel
      • JSpinner.NumberEditor

        public JSpinner.NumberEditor(JSpinner spinner,
                             String decimalFormatPattern)
        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.
        Parameters:
        spinner - the spinner whose model this editor will monitor
        decimalFormatPattern - the initial pattern for the DecimalFormat object that's used to display and parse the value of the text field.
        Throws:
        IllegalArgumentException - if the spinners model is not an instance of SpinnerNumberModel or if decimalFormatPattern is not a legal argument to DecimalFormat
        See Also:
        JSpinner.DefaultEditor.getTextField(), SpinnerNumberModel, DecimalFormat
Error Infobrol

Can not display this page of the Infobrol website

Type of error (18-01)

Unknown format specifier "&"

Please try again in a few minutes…

Return to the home page




Steph