Package Summary  Overview Summary

class:JSpinner.DateEditor [NONE]

constructor:<init>(javax.swing.JSpinner) [NONE]

  • DateEditor

    public DateEditor​(JSpinner spinner)
    Construct a JSpinner editor that supports displaying and editing the value of a SpinnerDateModel with a JFormattedTextField. ThisDateEditor 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 SpinnerDateModel
    See Also:
    getModel(), getFormat(), SpinnerDateModel

constructor:<init>(javax.swing.JSpinner,java.lang.String) [NONE]

  • DateEditor

    public DateEditor​(JSpinner spinner,
                      String dateFormatPattern)
    Construct a JSpinner editor that supports displaying and editing the value of a SpinnerDateModel with a JFormattedTextField. ThisDateEditor becomes both a ChangeListener on the spinner and a PropertyChangeListener on the new JFormattedTextField.
    Parameters:
    spinner - the spinner whose model this editor will monitor
    dateFormatPattern - the initial pattern for the SimpleDateFormat 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 SpinnerDateModel
    See Also:
    getModel(), getFormat(), SpinnerDateModel, SimpleDateFormat

method:getFormat() [NONE]

method:getModel() [NONE]

© 2019 Oracle Corporation and/or its affiliates