How to create a JSpinner component?
JSpinner is a single line input field with two buttons (arrow up and arrow down) that allow us to select a value like number or object from a sequence value. It looks like a combobox without a drop-down.
In the following example we create the default
JSpinner that will give us a spinner to select an integer value from it.