Program: 81664
Project: 81664
Buggy source:
public EditWindow(EgDownloaderWindow _mainWindow,Task _task){
  this.mainWindow=_mainWindow;
  this.setTask(_task);
  this.setTitle("String_Node_Str");
  this.setSize(480,250);
  this.getContentPane().setLayout(null);
  this.setResizable(false);
  this.setLocationRelativeTo(null);
  nameLabel=new AJLabel("String_Node_Str",Color.BLUE,5,10,40,30);
  nameField=new AJTextField("String_Node_Str",65,10,395,30);
  subnameLabel=new AJLabel("String_Node_Str",Color.BLUE,5,55,40,30);
  subnameField=new AJTextField("String_Node_Str",65,55,395,30);
  tagLabel=new AJLabel("String_Node_Str",Color.BLUE,5,100,40,30);
  tagField=new AJTextField("String_Node_Str",65,100,395,30);
  editTaskBtn=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 dialog,    MouseEvent event){
      String name=nameField.getText().trim();
      String subname=subnameField.getText().trim();
      String tag=tagField.getText().trim();
      if ("String_Node_Str".equals(name)) {
        JOptionPane.showMessageDialog(null,"String_Node_Str");
      }
 else {
        if ("String_Node_Str".equals(subname)) {
          subname=null;
        }
        if ("String_Node_Str".equals(tag)) {
          tag="String_Node_Str";
        }
        task.setName(name);
        task.setSubname(subname);
        task.setTag(tag);
        mainWindow.taskDbTemplate.update(task);
        mainWindow.runningTable.updateUI();
        dialog.dispose();
      }
    }
  }
),190,145,100,30);
  ComponentUtil.addComponents(getContentPane(),nameLabel,nameField,subnameLabel,subnameField,tagLabel,tagField,editTaskBtn);
  this.addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      EditWindow this_=(EditWindow)e.getSource();
      mainWindow.setVisible(true);
      mainWindow.setEnabled(true);
      this_.dispose();
    }
    public void windowDeactivated(    WindowEvent e){
      mainWindow.setVisible(true);
      mainWindow.setEnabled(true);
    }
    public void windowActivated(    WindowEvent e){
      mainWindow.setEnabled(false);
    }
  }
);
}

Fixed version (ground truth):
public EditWindow(EgDownloaderWindow _mainWindow,Task _task){
  this.mainWindow=_mainWindow;
  this.setTask(_task);
  this.setTitle("String_Node_Str");
  this.setSize(480,250);
  this.getContentPane().setLayout(null);
  this.setResizable(false);
  this.setLocationRelativeTo(null);
  nameLabel=new AJLabel("String_Node_Str",Color.BLUE,5,10,40,30);
  nameField=new AJTextField("String_Node_Str",65,10,395,30);
  subnameLabel=new AJLabel("String_Node_Str",Color.BLUE,5,55,40,30);
  subnameField=new AJTextField("String_Node_Str",65,55,395,30);
  tagLabel=new AJLabel("String_Node_Str",Color.BLUE,5,100,40,30);
  tagField=new AJTextField("String_Node_Str",65,100,395,30);
  editTaskBtn=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 dialog,    MouseEvent event){
      String name=nameField.getText().trim();
      String subname=subnameField.getText().trim();
      String tag=tagField.getText().trim();
      if ("String_Node_Str".equals(name)) {
        JOptionPane.showMessageDialog(null,"String_Node_Str");
      }
 else {
        if ("String_Node_Str".equals(subname)) {
          subname=null;
        }
        if ("String_Node_Str".equals(tag)) {
          tag="String_Node_Str";
        }
        task.setName(name);
        task.setSubname(subname);
        task.setTag(tag);
        mainWindow.taskDbTemplate.update(task);
        mainWindow.runningTable.updateUI();
        dialog.dispose();
      }
    }
  }
),190,145,100,30);
  ComponentUtil.addComponents(getContentPane(),nameLabel,nameField,subnameLabel,subnameField,tagLabel,tagField,editTaskBtn);
  this.addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      EditWindow this_=(EditWindow)e.getSource();
      mainWindow.setVisible(true);
      mainWindow.setEnabled(true);
      this_.dispose();
    }
    public void windowActivated(    WindowEvent e){
      mainWindow.setEnabled(false);
    }
  }
);
}