@Override public void paint(Graphics g) { if (isGLDrawing() && drawableComponent != null && canvas != null) { canvas.display(); } else { super.paint(g); } }
public void run() { System.err.println( "Animatr " + id + ", count " + frameCount + ": PRE: " + Thread.currentThread().getName()); for (int c = 0; c < frameCount; c++) { glad.display(); } System.err.println("Animatr " + id + ": DONE/SYNC: " + Thread.currentThread().getName()); synchronized (postSync) { done = true; System.err.println("Animatr " + id + ": END: " + Thread.currentThread().getName()); postSync.notifyAll(); } }