public void setCaretPos(int caretPos) {
		if (caretPos >= 0 && caretPos < field.getText().length()) {
			this.caretPos = caretPos;
		}
	}
Sets the position of the cursor relative to the text in this field. It is only meaningful
when the corresponding field is the field containing the field panel's actual cursor.
@param caretPos the offset into the text of the field of where the cursor is being displayed
by the field panel.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/AccessibleField.java