private void displayFileChooser() {
			if (fileChooser == null) {
				createFileChooser();
			}

			String path = textField.getText().trim();
			if (path.length() != 0) {
				File f = new File(path);
				if (f.isDirectory()) {
					fileChooser.setCurrentDirectory(f);
				}
				else {
					File pf = f.getParentFile();
					if (pf != null && pf.isDirectory()) {
						fileChooser.setSelectedFile(f);
					}
				}
			}

			currentFileValue = fileChooser.getSelectedFile();
			if (currentFileValue != null) {
				textField.setText(currentFileValue.getAbsolutePath());
				FileChooserEditor.this.firePropertyChange();
			}
			else {
				currentFileValue = null;
				currentDir = fileChooser.getCurrentDirectory();
			}

		}
Bean editor to show a text field and a browse button to bring
up a File Chooser dialog. This editor is created as a result of
get/setFilename() on Options.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/FileChooserEditor.java