/** Handles changes in the Project name and project directory, */
  private void updateTexts(DocumentEvent e) {

    Document doc = e.getDocument();

    if (doc == projectNameTextField.getDocument()
        || doc == projectLocationTextField.getDocument()) {
      // Change in the project name

      String projectName = projectNameTextField.getText();
      String projectFolder = projectLocationTextField.getText();

      // if (projectFolder.trim().length() == 0 || projectFolder.equals(oldName)) {
      createdFolderTextField.setText(projectFolder + File.separatorChar + projectName);
      // }

    }
    panel.fireChangeEvent(); // Notify that the panel changed
  }
 private void browseButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_browseButtonActionPerformed
   String command = evt.getActionCommand();
   if ("BROWSE".equals(command)) {
     JFileChooser chooser = new JFileChooser();
     chooser.setCurrentDirectory(null);
     chooser.setDialogTitle("Select Project Location");
     chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
     String path = this.projectLocationTextField.getText();
     if (path.length() > 0) {
       File f = new File(path);
       if (f.exists()) {
         chooser.setSelectedFile(f);
       }
     }
     if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(this)) {
       File projectDir = chooser.getSelectedFile();
       projectLocationTextField.setText(FileUtil.normalizeFile(projectDir).getAbsolutePath());
     }
     panel.fireChangeEvent();
   }
 } // GEN-LAST:event_browseButtonActionPerformed