javax.swing

Class JSpinner.ListEditor

public static class JSpinner.ListEditor extends JSpinner.DefaultEditor

A JSpinner editor used for the {@link SpinnerListModel}. This editor uses a JFormattedTextField to edit the values of the spinner.
Constructor Summary
ListEditor(JSpinner spinner)
Creates a new instance of ListEditor.
Method Summary
SpinnerListModelgetModel()
Returns the spinner's model cast as a {@link SpinnerListModel}.

Constructor Detail

ListEditor

public ListEditor(JSpinner spinner)
Creates a new instance of ListEditor.

Parameters: spinner the spinner for which this editor is used

Method Detail

getModel

public SpinnerListModel getModel()
Returns the spinner's model cast as a {@link SpinnerListModel}.

Returns: The spinner's model.