@Override
	public int cursorRight(FieldLocation cursorLoc) {
		if (cursorLoc.col < fields[cursorLoc.fieldNum].getNumCols(cursorLoc.row) - 1) {
			cursorLoc.col++;
		}
		else { // need to move to next field.
			Field field = fields[cursorLoc.fieldNum];
			if (cursorLoc.fieldNum < fields.length - 1) {
				cursorLoc.fieldNum++;
				field = fields[cursorLoc.fieldNum];
				cursorLoc.row = field.getRow(lastCursorY);
				cursorLoc.col = field.getCol(cursorLoc.row, field.getStartX());
			}
			else if (cursorLoc.row < field.getNumRows() - 1) {
				cursorLoc.row++;
				cursorLoc.col = 0;
			}
			else {
				return -1;
			}
		}
		return fields[cursorLoc.fieldNum].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