@Override
	public int setCursor(FieldLocation cursorLoc, int x, int y) {

		int index = this.findAppropriateFieldIndex(x, y);
		if (index < 0) {
			index = 0;
		}
		Field field = fields[index];
		// y passed-in is 0-based; update y to be relative to our starting position, which is 
		// the tallest field in this group of fields, using that field's height above its font
		// baseline.
		int offsetY = y - heightAbove;
		cursorLoc.fieldNum = index;
		cursorLoc.row = field.getRow(offsetY);
		cursorLoc.col = field.getCol(cursorLoc.row, x);
		return field.getX(cursorLoc.row, cursorLoc.col);
	}
Returns the row number of this layout with respect to its containing layout.
@return the row number of this layout with respect to its containing layout.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/support/RowLayout.java