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?
posted 9 years ago
Thanks pete stein
It works OK.
Arthur, where are your pants? Check under this tiny ad.