wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: What is the right way to flash a lable?
 
Similar Threads
Click a button to display an image. Trouble with add panel to a frame. Help !!
Applet timer
How to change Jtable Total Rows in runtime ?
Why isnt my thread rerstarted?
java JFreechart compress the line over the time period