Program: 81665
Project: 81665
Buggy source:
public AddFormDialog(final JFrame mainWindow){
  this.mainWindow=mainWindow;
  this.setTitle("String_Node_Str");
  this.setIconImage(new ImageIcon(getClass().getResource(ComponentConst.ICON_PATH + ComponentConst.SKIN_NUM + ComponentConst.SKIN_ICON.get("String_Node_Str"))).getImage());
  this.setSize(480,250);
  this.setResizable(false);
  this.setLayout(null);
  this.setLocationRelativeTo(mainWindow);
  this.addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      mainWindow.setVisible(true);
      mainWindow.setEnabled(true);
      AddFormDialog w=(AddFormDialog)e.getSource();
      w.dispose();
    }
    public void windowDeactivated(    WindowEvent e){
      mainWindow.setVisible(true);
      mainWindow.setEnabled(true);
      AddFormDialog w=(AddFormDialog)e.getSource();
      w.dispose();
    }
    public void windowActivated(    WindowEvent e){
      mainWindow.setEnabled(false);
    }
  }
);
  setDefaultCloseOperation(HIDE_ON_CLOSE);
  tipLabel=new AJLabel("String_Node_Str",Color.LIGHT_GRAY,80,5,this.getWidth() - 80,30);
  urlLabel=new AJLabel("String_Node_Str",Color.BLUE,5,40,60,30);
  urlField=new AJTextField("String_Node_Str",65,40,395,30);
  saveDirLabel=new AJLabel("String_Node_Str",Color.BLUE,5,120,60,30);
  saveDirField=new AJTextField("String_Node_Str",65,120,320,30);
  tagLabel=new AJLabel("String_Node_Str",Color.BLUE,5,80,60,30);
  tagField=new AJTextField("String_Node_Str",65,80,395,30);
  Setting setting=((EgDownloaderWindow)mainWindow).setting;
  saveDirField.setText(setting.getDefaultSaveDir() + "String_Node_Str" + new SimpleDateFormat("String_Node_Str").format(new Date()));
  chooserBtn=new AJButton("String_Node_Str","String_Node_Str",ComponentConst.SKIN_NUM + ComponentConst.SKIN_ICON.get("String_Node_Str"),new OperaBtnMouseListener(this,MouseAction.CLICK,new IListenerTask(){
    public void doWork(    Window addFormDialog,    MouseEvent e){
      AddFormDialog this_=(AddFormDialog)addFormDialog;
      int result=this_.saveDirChooser.showOpenDialog(this_);
      File file=null;
      if (result == JFileChooser.APPROVE_OPTION) {
        file=this_.saveDirChooser.getSelectedFile();
        if (!file.isDirectory()) {
          JOptionPane.showMessageDialog(this_,"String_Node_Str");
          return;
        }
        String path=file.getAbsolutePath();
        this_.saveDirField.setText(path);
      }
    }
  }
),400,120,60,30);
  addTaskBtn=new AJButton("String_Node_Str","String_Node_Str",ComponentConst.SKIN_NUM + ComponentConst.SKIN_ICON.get("String_Node_Str"),new OperaBtnMouseListener(this,MouseAction.CLICK,new IListenerTask(){
    public void doWork(    Window addFormDialog,    MouseEvent event){
      AddFormDialog this_=(AddFormDialog)addFormDialog;
      String url=this_.urlField.getText().trim();
      String saveDir=this_.saveDirField.getText().trim();
      String tag=this_.tagField.getText().trim();
      if ("String_Node_Str".equals(url)) {
        JOptionPane.showMessageDialog(this_,"String_Node_Str");
      }
 else       if ("String_Node_Str".equals(saveDir)) {
        JOptionPane.showMessageDialog(this_,"String_Node_Str");
      }
 else {
        if ("String_Node_Str".equals(tag)) {
          tag="String_Node_Str";
        }
        EgDownloaderWindow mainWindow=(EgDownloaderWindow)this_.mainWindow;
        if (isValidUrl(mainWindow.setting,url)) {
          if ("String_Node_Str".equals(url.substring(url.length() - 1,url.length()))) {
            url=url.substring(0,url.length() - 1);
          }
          if (!mainWindow.taskDbTemplate.exsits("String_Node_Str",url)) {
            if (((EgDownloaderWindow)this_.mainWindow).creatingWindow == null) {
              ((EgDownloaderWindow)this_.mainWindow).creatingWindow=new CreatingWindow(mainWindow);
            }
            Task task=new Task(url,saveDir);
            task.setTag(tag);
            CreateWorker worker=new CreateWorker(task,mainWindow);
            worker.execute();
          }
 else {
            JOptionPane.showMessageDialog(this_,"String_Node_Str");
          }
        }
 else {
          JOptionPane.showMessageDialog(this_,"String_Node_Str");
        }
      }
    }
  }
),(this.getWidth() - 100) / 2,170,100,30);
  saveDirChooser=new JFileChooser("String_Node_Str");
  saveDirChooser.setDialogTitle("String_Node_Str");
  saveDirChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
  ComponentUtil.addComponents(this.getContentPane(),addTaskBtn,urlLabel,urlField,tagLabel,tagField,saveDirLabel,saveDirField,chooserBtn,tipLabel);
}

Fixed version (ground truth):
public AddFormDialog(final JFrame mainWindow){
  this.mainWindow=mainWindow;
  this.setTitle("String_Node_Str");
  this.setIconImage(new ImageIcon(getClass().getResource(ComponentConst.ICON_PATH + ComponentConst.SKIN_NUM + ComponentConst.SKIN_ICON.get("String_Node_Str"))).getImage());
  this.setSize(480,250);
  this.setResizable(false);
  this.setLayout(null);
  this.setLocationRelativeTo(mainWindow);
  this.addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      mainWindow.setVisible(true);
      mainWindow.setEnabled(true);
      AddFormDialog w=(AddFormDialog)e.getSource();
      w.dispose();
    }
    public void windowActivated(    WindowEvent e){
      mainWindow.setEnabled(false);
    }
  }
);
  setDefaultCloseOperation(HIDE_ON_CLOSE);
  tipLabel=new AJLabel("String_Node_Str",Color.LIGHT_GRAY,80,5,this.getWidth() - 80,30);
  urlLabel=new AJLabel("String_Node_Str",Color.BLUE,5,40,60,30);
  urlField=new AJTextField("String_Node_Str",65,40,395,30);
  saveDirLabel=new AJLabel("String_Node_Str",Color.BLUE,5,120,60,30);
  saveDirField=new AJTextField("String_Node_Str",65,120,320,30);
  tagLabel=new AJLabel("String_Node_Str",Color.BLUE,5,80,60,30);
  tagField=new AJTextField("String_Node_Str",65,80,395,30);
  Setting setting=((EgDownloaderWindow)mainWindow).setting;
  saveDirField.setText(setting.getDefaultSaveDir() + "String_Node_Str" + new SimpleDateFormat("String_Node_Str").format(new Date()));
  chooserBtn=new AJButton("String_Node_Str","String_Node_Str",ComponentConst.SKIN_NUM + ComponentConst.SKIN_ICON.get("String_Node_Str"),new OperaBtnMouseListener(this,MouseAction.CLICK,new IListenerTask(){
    public void doWork(    Window addFormDialog,    MouseEvent e){
      AddFormDialog this_=(AddFormDialog)addFormDialog;
      int result=this_.saveDirChooser.showOpenDialog(this_);
      File file=null;
      if (result == JFileChooser.APPROVE_OPTION) {
        file=this_.saveDirChooser.getSelectedFile();
        if (!file.isDirectory()) {
          JOptionPane.showMessageDialog(this_,"String_Node_Str");
          return;
        }
        String path=file.getAbsolutePath();
        this_.saveDirField.setText(path);
      }
    }
  }
),400,120,60,30);
  addTaskBtn=new AJButton("String_Node_Str","String_Node_Str",ComponentConst.SKIN_NUM + ComponentConst.SKIN_ICON.get("String_Node_Str"),new OperaBtnMouseListener(this,MouseAction.CLICK,new IListenerTask(){
    public void doWork(    Window addFormDialog,    MouseEvent event){
      AddFormDialog this_=(AddFormDialog)addFormDialog;
      String url=this_.urlField.getText().trim();
      String saveDir=this_.saveDirField.getText().trim();
      String tag=this_.tagField.getText().trim();
      if ("String_Node_Str".equals(url)) {
        JOptionPane.showMessageDialog(this_,"String_Node_Str");
      }
 else       if ("String_Node_Str".equals(saveDir)) {
        JOptionPane.showMessageDialog(this_,"String_Node_Str");
      }
 else {
        if ("String_Node_Str".equals(tag)) {
          tag="String_Node_Str";
        }
        EgDownloaderWindow mainWindow=(EgDownloaderWindow)this_.mainWindow;
        if (isValidUrl(mainWindow.setting,url)) {
          if ("String_Node_Str".equals(url.substring(url.length() - 1,url.length()))) {
            url=url.substring(0,url.length() - 1);
          }
          if (!mainWindow.taskDbTemplate.exsits("String_Node_Str",url)) {
            if (((EgDownloaderWindow)this_.mainWindow).creatingWindow == null) {
              ((EgDownloaderWindow)this_.mainWindow).creatingWindow=new CreatingWindow(mainWindow);
            }
            Task task=new Task(url,saveDir);
            task.setTag(tag);
            CreateWorker worker=new CreateWorker(task,mainWindow);
            worker.execute();
          }
 else {
            JOptionPane.showMessageDialog(this_,"String_Node_Str");
          }
        }
 else {
          JOptionPane.showMessageDialog(this_,"String_Node_Str");
        }
      }
    }
  }
),(this.getWidth() - 100) / 2,170,100,30);
  saveDirChooser=new JFileChooser("String_Node_Str");
  saveDirChooser.setDialogTitle("String_Node_Str");
  saveDirChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
  ComponentUtil.addComponents(this.getContentPane(),addTaskBtn,urlLabel,urlField,tagLabel,tagField,saveDirLabel,saveDirField,chooserBtn,tipLabel);
}