if (layoutMgr != null && layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; lm2.invalidateLayout(this); }
  void invalidateTree()  {    for (int i = 0; i < ncomponents; i++)      {        Component comp = component[i];        comp.invalidate();        if (comp instanceof Container)          ((Container) comp).invalidateTree();      }  }