@Override
	public void layoutContainer(Container parent) {
		int n = parent.getComponentCount();
		Dimension d = parent.getSize();
		Insets insets = parent.getInsets();
		int x = insets.left;
		int y = insets.top;

		if (n > 0) {
			Component component = parent.getComponent(0);
			component.setBounds(x, y, componentWidth, component.getPreferredSize().height);
		}
		x += componentWidth + hgap;
		if (n > 1) {
			Component component = parent.getComponent(1);
			component.setBounds(x, y, componentWidth, component.getPreferredSize().height);
		}
		x += componentWidth + hgap;
		if (n > 2) {
			Component component = parent.getComponent(2);
			int remainingWidth = d.width - insets.left - insets.right - x;
			component.setBounds(x, y, remainingWidth, component.getPreferredSize().height);
		}
	}
Construct layout where first two components always have given width.
@param componentWidth the width of each of the first two components.
@param hgap the space between componennts.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constraint/dialog/FilterPanelLayout.java