Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Swing / AWT / SWT and the fly likes Trying to fade out a font Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Trying to fade out a font" Watch "Trying to fade out a font" New topic

Trying to fade out a font

Kurt Harless

Joined: Feb 25, 2009
Posts: 8
This seems like it should be easy: But Alas, what I am left with is a WHITE "S" on a light gray frame, instantly, the timers don't seem to slow it down! How do I get the letter "S' to gradually fade to white? Tried a thread with a sleep method but that kept the frame from repainting until the end.

It is late and my brain just cant wrap around this problem.

Any and all help or direction greatly appreciated!


Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
timer works OK like this

Kurt Harless

Joined: Feb 25, 2009
Posts: 8
Awesome, Thanks!

Didn't even know about SWING timers... Learn 10 new things a day!
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 44041
Sounds like something which would sit better on the Swing Forum. Moving.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Trying to fade out a font
jQuery in Action, 3rd edition