if (tree.isExpanded(path) && expandedIcon != null) bounds.x -= expandedIcon.getIconWidth() - 4; else if (collapsedIcon != null) bounds.x -= collapsedIcon.getIconWidth() - 4;
  protected boolean isLocationInExpandControl(TreePath path, int mouseX,                                              int mouseY)  {    boolean cntlClick = false;    int row = getRowForPath(tree, path);        if (!isLeaf(row))      {        if (bounds == null)          bounds = getPathBounds(tree, path);        if (tree.isExpanded(path) && expandedIcon != null)            bounds.x -= expandedIcon.getIconWidth() - 4;        else if (collapsedIcon != null)            bounds.x -= collapsedIcon.getIconWidth() - 4;        Icon controlIcon = getCurrentControlIcon(path);        if (controlIcon != null && (mouseX < bounds.x)             && (mouseX > (bounds.x - controlIcon.getIconWidth())))          cntlClick = true;      }    return cntlClick;  }