/*Java Swing, 2nd EditionBy Marc Loy, Robert Eckstein, Dave Wood, James Elliott, Brian ColeISBN: 0-596-00408-7Publisher: O'Reilly*/// IconSpinner.java//An implementation of JSpinner with customized content--icons in this case.//A standard spinner model is used with a custom editor (IconEditor.java).//import java.awt.Container;import java.awt.GridLayout;import javax.swing.Icon;import javax.swing.ImageIcon;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JSpinner;import javax.swing.SpinnerListModel;import javax.swing.event.ChangeEvent;import javax.swing.event.ChangeListener;public class Main extends JFrame {public Main() {super("JSpinner Icon Test");setSize(300, 80);setDefaultCloseOperation(EXIT_ON_CLOSE);