@Override
	public void setValue(Object value) {
		if (value != null && value instanceof Number) {
			Comparable minimum = getMinimum();
			Comparable maximum = getMaximum();

			Number val = (Number) value;

			if (minimum != null && minimum.compareTo(val) > 0) {
				return;
			}
			if (maximum != null && maximum.compareTo(val) < 0) {
				return;
			}
			super.setValue(value);
		}

	}
{@link SpinnerNumberModel} that adds checking to make sure setValue is in the allowed range.  Strangely,
the default SpinnerNumberModel has min and max values, but does not check except during the
increment/decrement using the spinner widget.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/BoundedSpinnerNumberModel.java