@Override protected void process(List out) { String status = CURRENT_STATUS.toString(); String rep = ""; if (out.isEmpty() == false) { rep = out.get(0).toString(); setText(rep); getStatusField().setText(status); } }
@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) { } }