File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes update the JVM from 1.5 to 1.6, JDialog background cant paint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "update the JVM from 1.5 to 1.6, JDialog background cant paint" Watch "update the JVM from 1.5 to 1.6, JDialog background cant paint" New topic
Author

update the JVM from 1.5 to 1.6, JDialog background cant paint

endswel shui
Ranch Hand

Joined: Jul 03, 2008
Posts: 33








when I click "hide editor", and I cant see the "1111111111111111111" in the dialog base on jvm 1.6.
but if I click "hide editor", and I can see the "1111111111111111111" in the dialog base on jvm 1.5.

pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
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?

e.g.,



and
endswel shui
Ranch Hand

Joined: Jul 03, 2008
Posts: 33
Thanks pete stein

It works OK.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: update the JVM from 1.5 to 1.6, JDialog background cant paint
 
Similar Threads
JPanels with different content should have the same size
How to use getModel() with JTabbedPane ?
ActonListener
Using NativeSwing, I open the JDialog, the background is blank, and I cant change it
update the JVM from 1.5 to 1.6, JDialog (modeless) background cant paint