TreeCellRenderer dtcr = tree.getCellRenderer(); if (dtcr == null) dtcr = createDefaultCellRenderer();
TreeCellRenderer dtcr = currentCellRenderer;
  protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets,                          Rectangle bounds, TreePath path, int row,                          boolean isExpanded, boolean hasBeenExpanded,                          boolean isLeaf)  {    boolean selected = tree.isPathSelected(path);    boolean hasIcons = false;    Object node = path.getLastPathComponent();        paintExpandControl(g, clipBounds, insets, bounds, path, row, isExpanded,                       hasBeenExpanded, isLeaf);                    TreeCellRenderer dtcr = tree.getCellRenderer();            if (dtcr == null)              dtcr = createDefaultCellRenderer();                boolean focused = false;    if (treeSelectionModel!= null)      focused = treeSelectionModel.getLeadSelectionRow() == row         && tree.isFocusOwner();            Component c = dtcr.getTreeCellRendererComponent(tree, node, selected,                                                    isExpanded, isLeaf, row,                                                    focused);            rendererPane.paintComponent(g, c, c.getParent(), bounds);          }