Question: What is the What is the difference between invokeAndWait() and invokeLater()?Answer: 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. |
Zum Wiederholen speichern
Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.
Melde dich an, um Lesezeichen, schwierige Fragen und Wiederholungssets zu speichern.
Ist das hilfreich? Ja Nein
Am hilfreichsten laut Nutzern:
- Why does it take so much time to access an Applet having Swing Components the first time?
- What\'s Java Swing?
- What are the differences between Swing and AWT?
- What is JFC?
- What is AWT?