} catch (Exception e) {
log.warning("Tried to invokeAndWait but couldn't. Going to invokeLater instead", "Exception", e.getMessage());
EventQueue.invokeLater(r);
}
} else {
EventQueue.invokeLater(r);
} catch (Exception e) {
log.warning("Tried to invokeAndWait but couldn't. Going to invokeLater instead", "Exception", e.getMessage());
EventQueue.invokeLater(r);
}
} else {
EventQueue.invokeLater(r);