return path.getPathCount() - 1;
int row = path.getPathCount(); if (tree.isVisible(path)) return row;  path = path.getParentPath(); while (row > 0 && !tree.isVisible(path)) { path = path.getParentPath(); row--; } return row;
	public int getRowForPath(JTree tree, TreePath path)	{		// FIXME: check visibility		// right now, just returns last element because		// expand/collapse is not implemented		return path.getPathCount() - 1;	}