/** * Called when an uncaught exception is thrown. Will display the error message in a dialog box. * * @param t the thread where the exception was throws. * @param e the thrown exception. */ @Override public void uncaughtException(final Thread t, final Throwable e) { try { if (SwingUtilities.isEventDispatchThread()) { showException(t, e); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { showException(t, e); } }); } } catch (Exception excpt) { LOGGER.error("", excpt); } }