public void printWait(Screen screen) { this.isLock = true; for (int i = 0; i < max; i++) { for (; !maxCheck(); ) { setDelay(screen.elapsedTime); try { screen.wait(LSystem.SECOND); } catch (InterruptedException e) { } } next(); setDelay(screen.elapsedTime); try { screen.wait(LSystem.SECOND); } catch (InterruptedException e) { } } setExist(false); if (exist) { listener.dispose(); } }