• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
endswel shui
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator








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
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks pete stein

It works OK.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic