code: static File openDirectoryDialog(Frame frame, File initialDir) {
      return openFileDialog(frame, null, initialDir, JFileChooser.DIRECTORIES_ONLY);
    }
docs: Show a directory chooser dialog, starting with a specified directory
  @param frame Owner frame
  @param initialDir The initial directory
  @return the selected file
  @since 3.0