Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT Window Opacity Fadeout

 
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

 
How do they get the deer to cross at the signs? Or to read this tiny ad?
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!