Re: AWT Repaint Problem with JDK 1.4
Thursday, September 19, 2002 08:21 PM
Hey, my favourite bug again. This is a threading issue with Java2D. You're probably doing your painting from outside the AWT event thread, which causes the graphics system to go out of sync. This is due to be fixed in 1.4.2.
To fix it for now, call Toolkit.sync() after you do your painting, or do your painting from within the event thread (using EventQueue.invokeLater/invokeAndWait()).