Changed invokeLater to invokeAndWait to avoid concurrent execution with
other Swing code that caused ConcurrentModificationException (Refs
#2055)