What is the difference between invokeAndWait() and invokeLater()?



What is the difference between invokeAndWait() and invokeLater()?..

Answer / Ranjay Kumar

invokeAndWait() runs the task synchronously on the Event Dispatch Thread (EDT) and blocks further invocations until the task completes. invokeLater() schedules the task to be executed at a later time on the EDT, but does not block the current execution.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Swing Interview Questions

What is swing control in java?

1 Answers  


What is java swing gui?

1 Answers  


Why swing components are called lightweight components?

1 Answers  


Is swing part of core java?

1 Answers  


Which window contains the swing controls?

1 Answers  


Is swing thread-safe?

1 Answers  


Where is java swing used?

1 Answers  


can we create a object in static block class A { static { A a=new A(); } }

7 Answers   Cap Gemini,


What is swing in java javatpoint?

1 Answers  


When we should go for codebase in applet?

1 Answers  


What is the difference between swing and awt?

1 Answers  


What is the difference between applications and applets?

1 Answers  


Categories