public void setComponent(Component component, boolean expanded, boolean leaf) {
      myComponent = component;
      myExpanded = expanded;
      myLeaf = leaf;

      // Since we wrap a new component, we need to reset our accessible context
      accessibleContext = null;

      // By adding the tree as our only child, we ensure the row corresponding
      // to the cell will be painted inside our bounds.
      if (getComponentCount() == 0) {
        add(myTree, BorderLayout.CENTER);
      }
    }
public void setComponent(Component component, boolean expanded, boolean leaf)