public void run() { while (firstExec) { firstExec = false; try { Thread.sleep(3000); } catch (Exception e) { } } m.nextDisplay(); }
public void keyPressed(int keyCode) { m.nextDisplay(); }