void () { if (!myCancelled) { myPaused = true; var message = UpdaterUI.message("confirm.abort"); var title = UpdaterUI.message("main.title"); var options = new String[]{UpdaterUI.message("button.abort"), UpdaterUI.message("button.continue")}; var result = JOptionPane.showOptionDialog(myFrame, message, title, JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null); if (result == 0) { myCancelled = true; myCancelButton.setEnabled(false); } myPaused = false; } }