private double parseDouble(String text) {
		if (text.equals("")) {
			text = "0";
		}
		else if (text.equals("-")) {
			text = "-0"; // will parse a negative 0, which compares less than 0. Prevents
						// allowing user to type in a "-" char when the minimum is set to 0
		}
		else if (text.equals(".")) {
			text = "0";
		}
		else if (text.equals("-.")) {
			text = "-0";
		}
		// because the field only allows valid values, we don't have to check for an exception
		return Double.parseDouble(text);

	}
Sets the minimum allowed value. The min must be 0 or negative so that continuous validation
can work.
@param min the minimum allowed value.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/FloatingPointTextField.java