What did you try already? To use a JSpinner properly, you must use a SpinnerModel. It is the Spinner models that determines the range of values that can be selected. There are different implementations of SpinnerModel for different uses (SpinnerNumberModel, SpinnerDateModel, etc).
The
API docs and the
Java Tutorial section for JSpinner are quite useful.