LayoutStyle style = LayoutStyle.getInstance();
for (int i = 0; i < count; i++) {
JComponent widget = (JComponent) container.getComponent(i);
int gap = style.getContainerGap(widget, SwingConstants.EAST, container);
Rectangle bounds = widget.getBounds();
Spring spring = new Spring(gap, gap);
Leading horizontal = new Leading(bounds.x, bounds.width, spring);
gap = style.getContainerGap(widget, SwingConstants.SOUTH, container);
spring = new Spring(gap, gap);
Leading vertical = new Leading(bounds.y, bounds.height, spring);
Constraints constraints = new Constraints(horizontal, vertical);
comps.put(widget, constraints);
array.add(widget);
}