SizeRequirements.calculateAlignedPositions(target.getWidth(), xTotal,
Insets in = target.getInsets(); int width = target.getWidth() - in.left - in.right; int height = target.getHeight() - in.top - in.bottom;  SizeRequirements.calculateAlignedPositions(width, xTotal,
  private void checkLayout()  {    if (offsetsX == null || offsetsY == null || spansX == null        || spansY == null)      {        checkRequirements();        checkTotalRequirements();        int len = target.getComponents().length;        offsetsX = new int[len];        offsetsY = new int[len];        spansX = new int[len];        spansY = new int[len];        SizeRequirements.calculateAlignedPositions(target.getWidth(), xTotal,                                                   xChildren, offsetsX, spansX);        SizeRequirements.calculateAlignedPositions(target.getHeight(), yTotal,                                                   yChildren, offsetsY, spansY);      }  }