Component c = dtcr.getTreeCellRendererComponent(tree, node, selected, expanded, isLeaf, 0, false); rendererPane.paintComponent(g, c, c.getParent(), getCellBounds(x, y, node));
Component c = dtcr.getTreeCellRendererComponent(tree, node, selected, expanded, isLeaf, row, false);  rendererPane.paintComponent(g, c, c.getParent(), getCellBounds(x, y, node)); }
   void paintNode(Graphics g, int x, int y, JTree tree, Object node,         boolean isLeaf)	{    TreePath curr = new TreePath(getPathToRoot(node, 0));      boolean selected = tree.isPathSelected(curr);      boolean expanded = false;    boolean hasIcons = false;      if (tree.isVisible(curr))      {        TreeCellRenderer dtcr = tree.getCellRenderer();        if (dtcr == null)          dtcr = createDefaultCellRenderer();         if (!isLeaf)            expanded = tree.isExpanded(curr);         Component c = dtcr.getTreeCellRendererComponent(tree, node, selected,                                                        expanded, isLeaf, 0,                                                        false);        rendererPane.paintComponent(g, c, c.getParent(), getCellBounds(x, y,                                                                       node));      }	}