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 How to implement Java Animation Fading In & Out? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to implement Java Animation Fading In & Out?" Watch "How to implement Java Animation Fading In & Out?" New topic
Author

How to implement Java Animation Fading In & Out?

J. Insi
Ranch Hand

Joined: Aug 11, 2010
Posts: 90

Hello guys...!

Seems that I'm still confused for doing the animation of fading out and fading in...
Couple weeks ago, I found the pushing pixel with its trident library... and the (old articles) seems nice,
but it didn't show us the fading tutorials... tough.

And yet, the owner seems now busy with android rather than the swing now...
Located at GItHub: Link.
I just realized it today. OMG.

Anyway, is there any way arround to do some animation tricks
fading in and out in Swing app?

Search result didn't give me constructive answers, yet.


Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

Animation in Swing is done using a javax.swing.Timer. You could take a look at JavaFX 2.0 which has an Animation API.


luck, db
There are no new questions, but there may be new answers.
J. Insi
Ranch Hand

Joined: Aug 11, 2010
Posts: 90
Darryl Burke wrote:Animation in Swing is done using a javax.swing.Timer. You could take a look at JavaFX 2.0 which has an Animation API.


thanks for replying, Darryl.
Fading JLabel using swing.Timer? Is that real?
I thought that javax.swing.Timer is used for making the Swing safe-without breaking the rule of EDT.

i mean, there's no method of fading over there.... isn't?

JavaFX, ya... that's right.
Do you have a suggestion which book that i should read upon?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

Fading JLabel using swing.Timer? Is that real?


JavaFX 1.x is on its way out; 2.0 is still in beta. If you decide to learn FX, I would recommend going for 2.0 which uses Java syntax (no scripting language to learn). There are a few largely incomplete/overly simple online tutorials. Search the net.

Here's the FX 2.0 start page: http://download.oracle.com/javafx/
J. Insi
Ranch Hand

Joined: Aug 11, 2010
Posts: 90
hehehe.... thanks, Darryl.

that's the trick for changing its foreground (become transparent).

JavaFX 1.x is on its way out; 2.0 is still in beta. If you decide to learn FX, I would recommend going for 2.0 which uses Java syntax (no scripting language to learn). There are a few largely incomplete/overly simple online tutorials. Search the net.

Here's the FX 2.0 start page: http://download.oracle.com/javafx/


anyway, i think that's the topic covered already inside this book, isn't?
Book Title: JavaFX™: A Beginner’s Guide
Author: J. F. DiMarzio

ya, that's great... how about another book? (as I'm updating resources to be read upon).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to implement Java Animation Fading In & Out?