@Override
	protected void updateInfoMessage(boolean isValid) {

		if (isValid) {

			Number start = (Number) lowerSpinnerModel.getValue();
			Number end = (Number) upperSpinnerModel.getValue();

			// using BigInteger because the range may be larger than Long.MAX_VALUE
			BigInteger bigStart = BigInteger.valueOf(start.longValue());
			BigInteger bigEnd = BigInteger.valueOf(end.longValue());

			BigInteger delta = bigEnd.subtract(bigStart).add(BigInteger.ONE);

			boolean hexMode =
				lowerSpinner.getTextField().isHexMode() || upperSpinner.getTextField().isHexMode();

			String statusMsg = formatStatus(
				String.format("Range Size: " + (hexMode ? "0x%x" : "%,d"), delta), false);
			infoLabel.setText(statusMsg);
		}
		else {
			infoLabel.setText(formatStatus(getErrorMessage(), true));
		}

	}
Constructor.

@param constraint Integer-type constraint for which this component is an editor.
@param converter Utility class to convert integer types to Long-type for internal operation.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/IntegerRangeConstraintEditor.java