layoutAlgorithm(parent, VERTICAL, HORIZONTAL);
{ SizeRequirements.calculateTiledPositions(height, null, vSizeReqs, vOffsets, vSpans); SizeRequirements.calculateAlignedPositions(width, null, hSizeReqs, hOffsets, hSpans); }   for (int i = 0; i < children.length; i++) { Component child = children[i]; child.setBounds(hOffsets[i] + insets.left, vOffsets[i] + insets.top, hSpans[i], vSpans[i]); }
  public void layoutContainer(Container parent)  {    if (isHorizontalIn(parent))      layoutAlgorithm(parent, HORIZONTAL, VERTICAL);    else      layoutAlgorithm(parent, VERTICAL, HORIZONTAL);  }