code: static File openFileDialog(Frame frame, FileFilter fileFilter, File initialDir) {
      return openFileDialog(frame, fileFilter, initialDir, JFileChooser.FILES_ONLY);
    }
docs: Show a file chooser dialog in a specified directory
  @param frame Owner frame
  @param fileFilter The pattern of files to choose from
  @param initialDir The initial directory
  @return the selected file
  @since 2.6