code: public void stateChanged(ChangeEvent e) {
  		SpinnerNumberModel model = (SpinnerNumberModel) spinner.getModel();
  		int value = model.getNumber().intValue();
  		setValue(value);
  	}
docs: Is invoked when the spinner model changes
  
  @param e
  the ChangeEvent