Esempio n. 1
0
  // timer listener event
  public final void onTime(final java.awt.event.ActionEvent event) {
    // temporarily remove ourselves, to prevent being called twice
    _theTimer.removeTimerListener(this);

    // catch any exceptions raised here, it doesn't really
    // matter if we miss a time step
    try {

      // pass the step operation on to our parent
      doStep(_goingForward, _largeSteps);

    } catch (final Exception e) {
      MWC.Utilities.Errors.Trace.trace(e);
    }

    // register ourselves as a time again
    _theTimer.addTimerListener(this);
  }