private void initChooser() {

		if (chooser == null) {
			chooser = new GhidraFileChooser(rootPanel);
			for (GhidraFileFilter gff : fileFilters) {
				chooser.addFileFilter(gff);
			}
			chooser.setMultiSelectionEnabled(false);
			chooser.setApproveButtonText(approveButtonText);
			chooser.setFileSelectionMode(chooserMode);
			chooser.setTitle(getTitle());

			if (directory != null) {
				chooser.setCurrentDirectory(directory);
			}
		}
	}
Prompts the user to entry the path to a file and/or directory,
or to pick it using a browser dialog.

@param title the dialog title
@param prompt HTML enabled prompt
@param chooseButtonText text of the choose button in the browser dialog
@param directory the initial directory of the browser dialog
@param initialFileValue the initial value to pre-populate the input field with
@param chooserMode {@link GhidraFileChooserMode} of the browser dialog
@param fileFilters optional {@link GhidraFileFilter filters}
@return the {@link File} the user entered / picked, or null if canceled
Ghidra/Features/PDB/src/main/java/pdb/symbolserver/ui/FilePromptDialog.java