Creating a JSpinner Component: A number spinner: : Spinner « Swing JFC « Java
- Java
- Swing JFC
- Spinner
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));
}
}
Related examples in the same category