A JSpinner has a SpinnerModel, that stores the selected Value, Bounds of the Values and step sizes, etc.

JSpinner spinner;
Object value = spinner.getModel().getValue();


Also other Spinners work this way. It is based on the Model-View-Controller(MVC)-Pattern and seperates the Data from their presentation and manipulation.

Get selected value of a number model spinner
I have this sequence :
 4,12,24,48,240,720,....

I order to find nth term of this sequence , can we represent this sequence as a function of n.
