private int findRowForFieldName(String fieldName) {
		int n = model.getRowCount();
		for (int row = 0; row < n; row++) {

			DataTypeComponent dtc = model.getComponent(row);
			if (dtc != null) {
				String dtcFieldName = dtc.getFieldName();
				if (Objects.equals(fieldName, dtcFieldName)) {
					return row;
				}
				String defaultName = dtc.getDefaultFieldName();
				if (Objects.equals(fieldName, defaultName)) {
					return row;
				}
			}
		}
		return -1;
	}
Select the field by the given name in this panel's table.

@param fieldName the field name
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompositeEditorPanel.java