code: protected void setValue(int newValue, boolean updateTextField, boolean firePropertyChange) {
  		int oldValue = value;
  		if (newValue < min) {
  			value = min;
  		} else if (newValue > max) {
  			value = max;
  		} else {
  			value = newValue;
  		}
  
  		if (updateTextField) {
  			textField.setText(Integer.toString(value));
  			textField.setForeground(Color.black);
  		}
  
  		if (firePropertyChange) {
  			firePropertyChange("value", oldValue, value);
  		}
  	}
docs: Sets the value attribute of the JSpinField object.
  
  @param newValue
  The new value
  @param updateTextField
  true if text field should be updated