if (hasControlIcons() && (mouseX < bounds.x) && (mouseX > (bounds.x - getCurrentControlIcon(path).getIconWidth() - gap))) cntlClick = true;
Insets i = tree.getInsets(); int left = getRowX(tree.getRowForPath(path), path.getPathCount() - 1) -getRightChildIndent() - width / 2 + i.left; cntlClick = mouseX >= left && mouseX <= left + width;
  protected boolean isLocationInExpandControl(TreePath path, int mouseX,                                              int mouseY)  {    boolean cntlClick = false;    int row = getRowForPath(tree, path);        if (! isLeaf(row))      {        Rectangle bounds = getPathBounds(tree, path);        if (hasControlIcons()            && (mouseX < bounds.x)            && (mouseX > (bounds.x - getCurrentControlIcon(path).getIconWidth() - gap)))          cntlClick = true;      }    return cntlClick;  }