Java examples for Swing:JSpinner
SpinnerListModel for an ordered list of objects.
import javax.swing.JSpinner; import javax.swing.SpinnerListModel; public class Main { public static void main(String[] args) { String[] seasons = new String[] { "Spring", "Summer", "Fall", "Winter" }; SpinnerListModel sModel = new SpinnerListModel(seasons); JSpinner listSpinner = new JSpinner(sModel); }/*from w ww. ja v a 2 s . com*/ }