Java tutorial
import javax.swing.JSpinner; public class Main { public static void main(String[] argv) throws Exception { // Create a number spinner JSpinner spinner = new JSpinner(); // Set its value spinner.setValue(new Integer(100)); System.out.println(spinner.getValue()); } }