@Override
	public void setAsText(String text) throws IllegalArgumentException {
		try {
			Date newDate = dateFormat.parse(text);
			setValue(newDate);
		}
		catch (ParseException e) {
			throw new IllegalArgumentException("Can't parse text as date: " + text);
		}
	}
Non-editable Editor for date and time; creates a text field for the string version of the date.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/DateEditor.java