try { analysisRun.execute(progress); setCompleted(true); } catch (java.io.IOException e) { logger.logMessage(ConsoleLogger.ERROR, e.getMessage()); } catch (InterruptedException e) {    }    SwingUtilities.invokeLater(new Runnable() { public void run() {
            public void run() {                try {                    analysisRun.execute(progress);                    setCompleted(true);                } catch (java.io.IOException e) {                    logger.logMessage(ConsoleLogger.ERROR, e.getMessage());                } catch (InterruptedException e) {                    // We don't need to do anything here.                    // The completed flag is not set, so the frame                    // will know that the analysis did not complete.                }                // Send a message to the dialog that it should close                // That way, it goes away without any need for user intervention                SwingUtilities.invokeLater(new Runnable() {                    public void run() {                        closeDialog(new WindowEvent(RunAnalysisDialog.this, WindowEvent.WINDOW_CLOSING));                    }                });            }