Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   Blinking Text (http://www.programmingforums.org/showthread.php?t=12885)

sackarias Mar 27th, 2007 2:43 AM

Blinking Text
 
What would require to make a label's text color blink for a few seconds?

I tried to do a loop that looped through, incremented and used a mod operator to see when it's even change it to one color, odd to a different color, but that always locked up the run of the program. What could another approach be?

Ooble Mar 27th, 2007 6:43 AM

Put a pause in the loop to make the system wait a little before progressing onto the next iteration. Simply call:
:

Thread.sleep(milliseconds);


All times are GMT -5. The time now is 2:15 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC