if (treepath[index] != path[index])
if (!treepath[index].equals(path[index]))
  public boolean equals(Object object)  {		// Variables		Object[]	treepath;		int			index;		// Check for TreePath    if (object instanceof TreePath)      {			// Get Path Elements			treepath = ((TreePath) object).getPath();			// Check length        if (treepath.length != path.length)				return false;			// Check Elements        for (index = 0; index < path.length; index++)          {            if (treepath[index] != path[index])					return false;          }			// Tree Path's are equals			return true;      }		// Unequal		return false;  }