private void HostPathButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_HostPathButtonActionPerformed
    JFileChooser fc = new JFileChooser();
    if (HostPath.getText().isEmpty()) {
        fc.setCurrentDirectory(new java.io.File("."));
    } else {
        fc.setCurrentDirectory(new java.io.File(HostPath.getText()));
    }
    fc.setDialogTitle("Open the PATH of the HTTP HOST to get its location");
    fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    // disable the "All files" option.
    fc.setAcceptAllFileFilterUsed(false);

    // Show open dialog; this method does not return until the dialog is closed
    if (fc.showOpenDialog(new JFrame()) == JFileChooser.APPROVE_OPTION) {
        HostPath.setText(fc.getSelectedFile().getAbsolutePath().toString());
    }
}