yield();
try { sleep(2); } catch (InterruptedException e) { e.printStackTrace(); }
                public void run() {                    while (true) {                        glCanvas.repaint();                        yield();                    }                }