LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.maximumLayoutSize(this);
LayoutManager2 lm2 = (LayoutManager2) layout; maxSize = lm2.maximumLayoutSize(this); return maxSize;
  public Dimension getMaximumSize()  {    if (layoutMgr != null && layoutMgr instanceof LayoutManager2)      {        LayoutManager2 lm2 = (LayoutManager2) layoutMgr;        return lm2.maximumLayoutSize(this);      }    else      return super.getMaximumSize();  }