public void setValue(BigInteger newValue) {

		if (!allowsNegative && newValue != null && newValue.signum() < 0) {
			newValue = null;
		}

		updateTextField(newValue);
	}
Sets the value of the field to the given value. A null value will clear the field.

@param newValue the new value or null.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/IntegerTextField.java