SwingUtilities.invokeAndWait() throws a InterruptedException and a InvocationTargetException how should I handle them?
public static void invokeAndWait(Runnable doRun) throws InterruptedException, InvocationTargetException
I want to use a method to display a dialog box and wait for the user to say yes or no. As far as I can tell, InvocationTargetException means there is a RuntimeException , and I can relate to it that way. However, what I really would like for an InterruptedException is to ignore it and continue the flow until the user gives an answer.
source share