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....

Recommended Answers

All 2 Replies

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.

Thnx dude.....the problem is solved now

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.