Hi all,
In my main program, I load a class and invoke a method in that
class.
In invoked method in the class , I create a user interface for some tasks and after getting user input I wait for a while.
I call Thread.currentThread().sleep(3) for waiting 3 seconds.
In that time my main program window blocks also for 3 seconds.
My main program window and the window waiting for the user input must be working in two different threads!. So sleep methods shouldn't block all
windows , am I right?
What can I do in order make only second invoked method
thread waits while
my main program window runs.
Regards,Suat.