private int getPreferredColumnWidth(Container parent) {
		int width = 0;
		int componentCount = parent.getComponentCount();
		for (int i = 0; i < componentCount; i++) {
			Component component = parent.getComponent(i);
			Dimension d = component.getPreferredSize();
			width = Math.max(width, d.width);
		}
		return width;
	}
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