private int decodeUnsignedIntEntry(JTextField textField, String type, boolean zeroAllowed) {
		model.clearStatus();
		String valueStr = textField.getText().trim();
		if (StringUtils.isEmpty(valueStr)) {
			model.setStatus("Missing " + type + ".", false);
			return -1;
		}
		try {
			int value = Integer.decode(valueStr);
			if (value < 0) {
				model.setStatus("Negative " + type + " not permitted.", true);
				return -1;
			}
			if (value == 0 && !zeroAllowed) {
				model.setStatus("Zero " + type + " not permitted.", true);
				return -1;
			}
			model.setStatus(null);
			return value;
		}
		catch (NumberFormatException e1) {
			model.setStatus("Invalid " + type + " \"" + valueStr + "\".", true);
			return -1;
		}
	}
Sets the currently displayed structure packing value (maximum component alignment)
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompEditorPanel.java