SwingUtilities.invokeAndWait()
throws an InterruptedException
and an InvocationTargetException
how should I handle these?
public static void invokeAndWait(Runnable doRun) throws InterruptedException,
InvocationTargetException
I want to use the method to show a dialog and wait for the user to say yes or no. As far as I can tell the InvocationTargetException
means there was a RuntimeException
and I can treat it like that. However what I would really want for the InterruptedException
is to ignore it and have thread continue until the user has given an answer.