/* (non-Javadoc)
  * @see javax.swing.SwingWorker#done()
  */
 @Override
 public void done() {
   MainWindow.getSaveProgressBar().setVisible(false);
   MainWindow.middleStatusBar.setText("Loading files done!");
   Utility.endWaitCursor(MainWindow.statusBars); // wei wang, 5/27/2014
   Toolkit.getDefaultToolkit().beep();
   //			MainWindow.tabPane.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
   NewTask_for_ValidityCommandLine.this.setVisible(false);
 }
    /**
     * Minor modification has been made
     *
     * @author Wei Wang 5/21/2014
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent e) {
      NewTask_for_ValidityCommandLine.this.setVisible(false);
      finishButton.setEnabled(false);
      //        	task = new Task();
      task.addPropertyChangeListener(proplistener);

      // MainWindow.tabPane.setCursor(new Cursor(Cursor.WAIT_CURSOR));
      SwingUtilities.invokeLater(
          new Runnable() {
            public void run() {
              Utility.startWaitCurosr(MainWindow.statusBars); // wei wang, 5/27/2014
            }
          });
      task.execute();
      Utility.endWaitCursor(MainWindow.statusBars);
      //            MainWindow.tabPane.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
      NewTask_for_ValidityCommandLine.this.setVisible(false);
    }