Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to fade out a font

 
Kurt Harless
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

Kurt



 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
timer works OK like this

 
Kurt Harless
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awesome, Thanks!

Didn't even know about SWING timers... Learn 10 new things a day!
 
Campbell Ritchie
Sheriff
Pie
Posts: 48968
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like something which would sit better on the Swing Forum. Moving.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic