return new Dimension(xTotal.maximum, yTotal.maximum);
Insets i = container.getInsets(); return new Dimension(xTotal.maximum + i.left + i.right, yTotal.maximum + i.top + i.bottom);
  public Dimension maximumLayoutSize(Container parent)  {    synchronized (container.getTreeLock())      {    if (container != parent)      throw new AWTError("BoxLayout can't be shared");    checkTotalRequirements();    return new Dimension(xTotal.maximum, yTotal.maximum);  }  }