private boolean hasNonDefaultValue() {
		if (defaultText == null) {
			return false; // not yet initialized
		}

		AbstractFormatter formatter = getFormatter();
		if (formatter == null) {
			return hasNonDefaultText(); // no formatter implies a text only field
		}

		try {
			Object value = formatter.stringToValue(getText());
			if (value == null) {
				return true; // assume empty string or invalid text
			}
			return !value.equals(defaultValue);
		}
		catch (ParseException e) {
			return true;
		}
	}
Returns true if the contents of this field are invalid, as determined by the InputValidator.
@return true if the contents of this field are invalid, as determined by the InputValidator.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/GFormattedTextField.java