*/
public static void invokeAndWait(Runnable runnable) {
try {
SwingUtilities.invokeAndWait(runnable);
} catch (InterruptedException e) {
throw new InterruptionError();
} catch (InvocationTargetException e) {
Throwable err = e.getTargetException();
if (err instanceof RuntimeException)
throw (RuntimeException) err;
if (err instanceof Error)