This content has been marked as final. Show 2 replies
selva wrote:Good idea.
What i want to do?
I am developing swing based application.
whenever user click start button, it do some work and return the result to main panel. I should enable stop button for user.
Problem 2: I replaced the method with thread concept. Main and other thread works concurrently, so i am able to access the main panel now. That's nice.
Bad Thing is: The result statement in the main thread is executed before the other thread finish it's work. So it will display nothing as result.So you should re-implement that so that the result statement is called AFTER the thread finishes, shouldn't you? If only you could somehow signal the GUI that the thread is done with its job...