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 What is the right way to flash a lable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "What is the right way to flash a lable?" Watch "What is the right way to flash a lable?" New topic
Author

What is the right way to flash a lable?

Yaroslav Chinskiy
Ranch Hand

Joined: Jan 09, 2001
Posts: 147
Hi,

I am new to SWING and looking for the best practices.

I need to write a gui where based on some events table cells start/stop flashing. In the attached code I get 70% CPU util if I add 1000 lables.

So what am i doing wrong?



Thank you.
[ July 27, 2004: Message edited by: Yaroslav Chinskiy ]
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
This is a little different way of looking at things. I wonder how this does for your cpu usage.
 
 
subject: What is the right way to flash a lable?