void (String message) { String html = "<html>" + message.replace("\n", "<br>") + "</html>"; invokeAndWait(() -> JOptionPane.showMessageDialog(myFrame, html, UpdaterUI.message("error.title"), JOptionPane.ERROR_MESSAGE)); }