@Override
	public void setAsText(String text) throws IllegalArgumentException {
		if (text == null || text.trim().isEmpty()) {
			currentFileValue = null;
			textField.setText("");
			return;
		}

		currentFileValue = new File(text);
		textField.setText(text);
	}
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