import javax.swing.*;

public class MVCExample2  {
  
  public static void main(String[] args) {
    SpinnerNumberModel model=new SpinnerNumberModel(0,0,100,1);
    
    JPanel panel=new JPanel(null);
    BoxLayout layout=new BoxLayout(panel,BoxLayout.Y_AXIS);
    panel.setLayout(layout);
    
    for(int i=0;i<5;i++) {
      JSpinner spinner=new JSpinner(model);
      panel.add(spinner);  
    }
    
    JFrame frame=new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setContentPane(panel);
    frame.setSize(400,300);
    frame.show();
  }
}