Dimension d = editingContainer.getPreferredSize(); int textX = offset;
Rectangle bounds = tree.getPathBounds(lastPath);
  protected boolean inHitRegion(int x, int y)  {    Dimension d = editingContainer.getPreferredSize();    int textX = offset;        if (editingIcon != null)        textX += editingIcon.getIconWidth() + 4;        if ((d.width > textX && x >= textX && x <= d.width)        && (y >= 0 && y <= d.height))      return true;    return false;  }