@Override
	public int screenLocationToTextOffset(int row, int col) {
		if (row >= subFields.size()) {
			return getText().length();
		}
		int extraSpace = rowSeparator.length();
		int len = 0;
		for (int i = 0; i < row; i++) {
			len += lines.get(i).length() + extraSpace;
		}
		len += Math.min(col, lines.get(row).length());
		return len;
	}
Create the text field for given field element
@param element the element
@return the field
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/field/VerticalLayoutTextField.java