@Override
	protected void updateInfoMessage(boolean isValid) {
		if (isValid) {

			LocalDate start = lowerSpinnerModel.getDate();
			LocalDate end = upperSpinnerModel.getDate();

			// add one because the date range is inclusive.
			long days = ChronoUnit.DAYS.between(start, end) + 1;
			infoLabel.setText(formatStatus(String.format("Range Size: %,d days", days), false));
		}
		else {
			infoLabel.setText(formatStatus(getErrorMessage(), true));
		}

	}
Constructor.

@param constraint Date constraint for which this component is an editor.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/DateRangeConstraintEditor.java