예제 #1
0
파일: JobMonitor.java 프로젝트: bayes/Bayes
 @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);
   }
 }
예제 #2
0
파일: JobMonitor.java 프로젝트: bayes/Bayes
    @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) {
      }
    }