@Override
	public String toString() {
		return Arrays.toString(fields);
	}
Finds the most appropriate field to place the cursor for the given horizontal
position.  If the position is between fields, first try to the left and if that
doesn't work, try to the right.
@param x the x coordinate relative to the field panel
@param y the y coordinate relative to the field panel
@return the index
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/support/RowLayout.java