@Override protected void done() { try { String txt = "Job Is Completed"; ImageIcon icon = new ImageIcon(getClass().getResource("/bayes/resources/icons/Success.png")); if (CURRENT_STATUS != RUN_STATUS.RUN) { icon = new ImageIcon(getClass().getResource("/bayes/resources/icons/Error.png")); txt = "Job Status:" + CURRENT_STATUS.getName(); } setFinaleStage(txt, icon); dialog.toFront(); } catch (Exception ignore) { } }