• Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT Window Opacity Fadeout  RSS feed

 
Isaac Hewitt
Ranch Hand
Posts: 191
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code to fade out my JDialog works alright on one computer but not at all on the other even though both computers have Windows 7 and the latest version of Java.


 
m Korbel
Ranch Hand
Posts: 174
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- in Java7 were removed almost of thread safe (up to Java7) methods in API,

- usage of Thread.sleep(int) isn't about good practicies in Java

- Thread.sleep(int) freeze AWT/Swing untill sleep ended, all event are lost during this sleep, more in Oracle tutorial Concurency in Swing

- use Swing Timer in AWT, Swing exclusivelly

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!