public void setMaxValue(double max) {
		if (max < 0.0) {
			throw new IllegalArgumentException("Max value can not be negative!");
		}
		maxValue = max;
	}
Sets the maximum allowed value. The max must be 0 or positive so that continuous validation
can work.
@param max the maximum allowed value.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java