DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot());
TreeNode node = ((TreeNode) (tree.getModel()).getRoot());
	public TreePath getPathForRow(JTree tree, int row)	{      DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel())            .getRoot());      if (!tree.isRootVisible()            && tree.isExpanded(new TreePath(((DefaultMutableTreeNode) node)                  .getPath())))         node = node.getNextNode();		for (int i = 0; i < row; i++)         node = getNextVisibleNode(node);      // in case nothing was found      if (node == null)         return null;      // something was found      return new TreePath(node.getPath());   }