@Override public void mouseReleased(MouseEvent event){
  if (event.getSource() == getComponentDecreaseSpinnerButton()) {
    decreaseTimer.stop();
  }
 else {
    increaseTimer.stop();
  }
}

@ Override public void mouseReleased ( MouseEvent event ) { if ( event . getSource ( ) == getComponentDecreaseSpinnerButton ( ) ) { decreaseTimer . stop ( ) ; } else { increaseTimer . stop ( ) ; } }
mousereleased , this will be called when the spinner button is released .
