The Defined as :
InvokeAndWait() method : in swing is synchronous. It blocks until Runnable task is complete.
InvokeLater() method : in swing is asynchronous. It posts an action event to the event queue and returns immediately. It will not wait for the task to complete.
InvokeAndWait() method : in swing is synchronous. It blocks until Runnable task is complete.
InvokeLater() method : in swing is asynchronous. It posts an action event to the event queue and returns immediately. It will not wait for the task to complete.