int (int xOffset, Component component, int spaceTop, int spaceHeight) { if (component != null) { int prefWestWidth = component.getPreferredSize().width; component.setBounds(xOffset, spaceTop, prefWestWidth, spaceHeight); xOffset += prefWestWidth + getHgap(); } return xOffset; }