A JSpinner gives the user the capability entering integer data and other types of data with discrete values. It requires a subclass of SpinnerModel for its operation. The Java libraries contain SpinnerModel subclasses for working with lists, numbers, or dates.