Whether it is called in Java 1.5 or 1.6, your code is faulty as you're calling Thread.sleep(...) on the EDT, so it's likely to freeze your app. Why do this rather than use something better like a Swing Timer?
Joined: Jul 03, 2008
Thanks pete stein
It works OK.
subject: update the JVM from 1.5 to 1.6, JDialog background cant paint