adspace


Why would you use swingutilities.invokeandwait or swingutilities.invokelater?

Answer Posted / Nishant Pal

"SwingUtilities.invokeAndWait() and SwingUtilities.invokeLater() are used to ensure that operations are performed on the Event Dispatch Thread (EDT). These methods allow you to schedule tasks to be executed on the EDT from any thread, which is important for updating the UI and maintaining responsiveness in a Swing application. invokeAndWait() waits for the task to complete before returning, while invokeLater() schedules the task for execution at some point in the future without waiting for its completion."n

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category