public void setValue(LocalDate newDate) {

		if (newDate == null) {
			return;
		}

		if (minimum != null && minimum.compareTo(newDate) > 0) {
			throw new IllegalArgumentException("value is before the minimum allowed date!");
		}
		if (maximum != null && maximum.compareTo(newDate) < 0) {
			throw new IllegalArgumentException("value is after the maximum allowed date!");
		}

		if (!newDate.equals(getValue())) {
			setText(dateFormat.format(newDate));
		}

	}
Sets the maximum allowed date. Can be null.
@param maximum the minimum allowed date.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/LocalDateTextField.java