DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   Problem in Timer thread (http://www.daniweb.com/forums/thread70160.html)

vinod_javas Feb 16th, 2007 8:58 am
Problem in Timer thread
 
Hey buddies..,
I m developing some project using java swing... in that I got a problem like......if i use timer thread in label means i couldnt perform any other action in that panel like button click event and all.... it becomes too slow in action....

jwenting Feb 16th, 2007 1:50 pm
Re: Problem in Timer thread
 
That's correct.
You fell into the well known trap of starting a longrunning operation from the AWT eventhandler thread.
Start it from another thread and pass it a reference to the label.

vinod_javas Feb 17th, 2007 3:33 am
Re: Problem in Timer thread
 
Thnx dude.....the problem is solved now


All times are GMT -4. The time now is 10:29 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC