Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Fade text in and out??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Fade text in and out???" Watch "Fade text in and out???" New topic
Author

Fade text in and out???

Daniel Lugn
Greenhorn

Joined: Aug 06, 2001
Posts: 6
Is there a way to fade in a textstring from transparent to a color and then back again??
Thanks!!
/Daniel
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Here's a quick and dirty applet I made that does this by messing with the alpha portion of the color...




Use something like the following ( with spaces removed ) to launch it...


HTH,
-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
Have you checked out Aspose?
 
subject: Fade text in and out???
 
It's not a secret anymore!