Esempio n. 1
0
 @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);
   }
 }
Esempio n. 2
0
    @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) {
      }
    }