This post shows how to use GUI actions (asynchronous) and non-GUI (synchronous) process together to get the desired user experience using the event dispatch
thread and the application threads in
Java.
Link to the post:
SwingUtilities.invokeAndWait usage Example
Prasad Saya.
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer Associate