question: private void invokeAndWait ( Runnable run ) { if ( ! SwingUtilities . isEventDispatchThread ( ) ) { try { SwingUtilities . invokeAndWait ( run ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } else { run . run ( ) ; } }
target:  If not in the event thread run via SwingUtilities.invokeAndWait()