Program: 81634
Project: 81634
Buggy source:
public AddGroupDialog(final JFrame window){
  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(300,120);
  this.setResizable(false);
  this.setLayout(null);
  this.setLocationRelativeTo(window);
  JLabel groupNameLabel=new AJLabel("String_Node_Str",Color.BLUE,15,20,40,30);
  final JTextField groupNameField=new AJTextField("String_Node_Str","String_Node_Str",50,20,160,30);
  JButton addBtn=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){
      AddGroupDialog addGroupDialog=(AddGroupDialog)dialog;
      String groupName=groupNameField.getText().trim();
      if ("String_Node_Str".equals(groupName)) {
        JOptionPane.showMessageDialog(null,"String_Node_Str");
      }
 else       if (!FileUtil.dirValidate(groupName)) {
        JOptionPane.showMessageDialog(null,"String_Node_Str");
      }
 else {
        if (window instanceof EgDownloaderWindow) {
          EgDownloaderWindow mainWindow=(EgDownloaderWindow)window;
          mainWindow.saveTaskGroupData();
          mainWindow.dispose();
        }
 else {
          window.dispose();
        }
        ComponentConst.groupName=groupName;
        ComponentConst.changeDataPath(groupName);
        ComponentConst.changeDataXmlPath();
        addGroupDialog.dispose();
        if (window instanceof EgDownloaderWindow) {
          FileUtil.ifNotExistsThenCreate(ComponentConst.getXmlDirPath());
          SettingDom4jDbTemplate.updateDom();
          TaskDom4jDbTemplate.updateDom();
          PictureDom4jDbTemplate.updateDom();
        }
        new InitWindow();
      }
    }
  }
),220,20,60,30);
  addBtn.setUI(new BEButtonUI().setNormalColor(BEButtonUI.NormalColor.blue));
  ComponentUtil.addComponents(getContentPane(),groupNameLabel,groupNameField,addBtn);
  this.addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      AddGroupDialog w=(AddGroupDialog)e.getSource();
      w.dispose();
    }
    public void windowDeactivated(    WindowEvent e){
      AddGroupDialog w=(AddGroupDialog)e.getSource();
      w.dispose();
    }
  }
);
  setDefaultCloseOperation(DISPOSE_ON_CLOSE);
  setVisible(true);
}

Fixed version (ground truth):
public AddGroupDialog(final GroupWindow window,final EgDownloaderWindow 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(300,120);
  this.setResizable(false);
  this.setLayout(null);
  this.setLocationRelativeTo(window);
  JLabel groupNameLabel=new AJLabel("String_Node_Str",Color.BLUE,15,20,40,30);
  final JTextField groupNameField=new AJTextField("String_Node_Str","String_Node_Str",50,20,160,30);
  JButton addBtn=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){
      AddGroupDialog addGroupDialog=(AddGroupDialog)dialog;
      String groupName=groupNameField.getText().trim();
      if ("String_Node_Str".equals(groupName)) {
        JOptionPane.showMessageDialog(null,"String_Node_Str");
      }
 else       if (!FileUtil.dirValidate(groupName)) {
        JOptionPane.showMessageDialog(null,"String_Node_Str");
      }
 else {
        FileUtil.ifNotExistsThenCreate(ComponentConst.ROOT_DATA_PATH);
        File dataFile=new File(ComponentConst.ROOT_DATA_PATH);
        for (        File file : dataFile.listFiles()) {
          if (file.getName().equals(groupName)) {
            JOptionPane.showMessageDialog(null,"String_Node_Str");
            return;
          }
        }
        if (mainWindow != null) {
          mainWindow.saveTaskGroupData();
          mainWindow.dispose();
        }
        ComponentConst.groupName=groupName;
        ComponentConst.changeDataPath(groupName);
        ComponentConst.changeDataXmlPath();
        addGroupDialog.dispose();
        if (mainWindow != null) {
          FileUtil.ifNotExistsThenCreate(ComponentConst.getXmlDirPath());
          SettingDom4jDbTemplate.updateDom();
          TaskDom4jDbTemplate.updateDom();
          PictureDom4jDbTemplate.updateDom();
        }
        if (window != null) {
          window.dispose();
        }
        new InitWindow();
      }
    }
  }
),220,20,60,30);
  addBtn.setUI(new BEButtonUI().setNormalColor(BEButtonUI.NormalColor.blue));
  ComponentUtil.addComponents(getContentPane(),groupNameLabel,groupNameField,addBtn);
  this.addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      AddGroupDialog w=(AddGroupDialog)e.getSource();
      w.dispose();
    }
    public void windowDeactivated(    WindowEvent e){
      AddGroupDialog w=(AddGroupDialog)e.getSource();
      w.dispose();
    }
  }
);
  setDefaultCloseOperation(DISPOSE_ON_CLOSE);
  setVisible(true);
}