return treeState.getRowCount();
DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); int count = 0;  while (node != null) { count++; node = getNextVisibleNode(node); }  return count;
	public int getRowCount(JTree tree)	{		return treeState.getRowCount();	}