Creating a JSpinner Component: A number spinner:
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)); } }