Construct a JSpinner
editor that supports displaying
and editing the value of a SpinnerDateModel
with a JFormattedTextField
. This
DateEditor
becomes both a ChangeListener
on the spinner and a PropertyChangeListener
on the new JFormattedTextField
.
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. |
IllegalArgumentException | if the spinners model is not
an instance of SpinnerDateModel |
getModel, getFormat, SpinnerDateModel, java.text.SimpleDateFormat
Diagram: JSpinner