It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes how to update a gui component like a label in a timely priod? using bg thread ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to update a gui component like a label in a timely priod? using bg thread ?" Watch "how to update a gui component like a label in a timely priod? using bg thread ?" New topic
Author

how to update a gui component like a label in a timely priod? using bg thread ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Tahnk you for reading my post.
I want to have a toolbar for example with a label on it.
I want to update my label , from time to time based on another work which i should allways do.

for example : i should check the database occusionally and if some new record was available i change the label and its color to red.

while i check the database i want my application to continue its work:
user can open menu ....

How should i use threads ?

Thank you
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
http://java.sun.com/docs/books/tutorial/essential/threads/

http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html

these should get you started.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to update a gui component like a label in a timely priod? using bg thread ?