int count = 0;
	public int getRowCount(JTree tree)	{    TreeNode node = ((TreeNode) (tree.getModel())            .getRoot());      if (!tree.isRootVisible()        && tree.isExpanded(new TreePath((getPathToRoot(node, 0)))))      node = getNextNode(node);            int count = 0;            while (node != null)      {         count++;         node = getNextVisibleNode(node);      }            return count;	}