01-06-2011 02:59 AM
Can you explain to me about difference of invokeLater() and invokeAndWait() method?
When should we use invokeLater() and when should we use invokeAndWait() method?
Thank you !
Solved! Go to Solution.
01-06-2011 03:29 AM
Methods invokeLater or invokeAndWait - both of which take a Runnable. Anything in that Runnable’s run method will be executed by the event thread at the next available opportunity.
Difference between the two:
The first method is asynchronous (which means in this case that it returns immediately) the second is synchronous (so waits until your Runnable’s run method is finished before returning).
Thanks & Regards,
01-06-2011 03:43 AM
Hope It Helps...
01-07-2011 06:35 AM
Well, if you think your query has been answered...Please mark the thread solved.