private boolean shouldParseAsHex(String text) {
		if (allowsHexPrefix) {
			// if allowing "0x" prefix, let the incoming text determine if we should parse as hex
			return text.startsWith("0x") || text.startsWith("-0x");
		}
		// otherwise parse the input string is whatever mode this field has been set to.
		return isHexMode;
	}
Sets the horizontal alignment of the JTextField

@param alignment the alignment as in {@link JTextField#setHorizontalAlignment(int)}
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/IntegerTextField.java