@Override public void stateChanged(ChangeEvent e){
  if (e.getSource() == m_SpinnerMaxSize.getModel()) {
    trim();
    validate();
    caretUpdate(null);
  }
}

@ Override public void stateChanged ( ChangeEvent e ) { if ( e . getSource ( ) == m_SpinnerMaxSize . getModel ( ) ) { trim ( ) ; validate ( ) ; caretUpdate ( null ) ; } }
invoked when the target of the listener has changed its state .
