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