public void stopClock(){
  if (timer.isRunning()) {
    firePropertyChange(TIMER_STATUS,(getClockDirection() > 0 ? TimerStatus.FORWARD : TimerStatus.BACKWARD),TimerStatus.STOPPED);
    fireClockUpdate(TimerStatus.STOPPED);
    timer.stop();
  }
}

public void stopClock ( ) { if ( timer . isRunning ( ) ) { firePropertyChange ( TIMER_STATUS , ( getClockDirection ( ) > 0 ? TimerStatus . FORWARD : TimerStatus . BACKWARD ) , TimerStatus . STOPPED ) ; fireClockUpdate ( TimerStatus . STOPPED ) ; timer . stop ( ) ; } }
method to call to stop the timer .
