private int getRowHeight(Container parent, int row) {
		int rowHeight = 0;
		int componentCount = parent.getComponentCount();
		for (int i = 0; i < columnCount; i++) {
			int ordinal = row * columnCount + i;
			if (ordinal >= componentCount) {
				// this implies uneven components (can't fill the last row)
				return rowHeight;
			}

			Component component = parent.getComponent(ordinal);
			Dimension d = component.getPreferredSize();
			rowHeight = Math.max(rowHeight, d.height);
		}
		return rowHeight;
	}
Constructs a new PairLayout.
@param vgap the gap (in pixels) between rows.
@param hgap the gap (in pixels) between the two columns.
@param columnCount the number of columns in this grid
Ghidra/Framework/Gui/src/main/java/ghidra/util/layout/VariableRowHeightGridLayout.java