Beispiel #1
0
 public void stop() {
   started = false;
   timer.stop();
   setVisible(false);
   stopper.terminate();
   if (terminateOnClose) {
     System.exit(0);
   }
   gd.setFullScreenWindow(null);
 }
Beispiel #2
0
 public void start() {
   started = true;
   if (allowAltTab && !debugMode) {
     stopper.start();
   }
   setVisible(true);
   if (SystemUtil.isMac()) {
     gd.setFullScreenWindow(this);
   }
   timer.start();
 }
Beispiel #3
0
 public void setTimerSpeed(int millisec) {
   timer.setDelay(millisec);
 }