boolean selected = tree.isPathSelected(path); boolean hasIcons = false; Object node = path.getLastPathComponent();  if (tree.isVisible(path)) { if (editingComponent != null && editingPath != null && isEditing(tree) && node.equals(editingPath.getLastPathComponent())) { rendererPane.paintComponent(g, editingComponent.getParent(), null, bounds); } else { TreeCellRenderer dtcr = tree.getCellRenderer(); if (dtcr == null) dtcr = createDefaultCellRenderer(); Component c = dtcr.getTreeCellRendererComponent(tree, node, selected, isExpanded, isLeaf, row, false); bounds.x += gap; rendererPane.paintComponent(g, c, c.getParent(), bounds); } }
  protected void paintRow(Graphics g, Rectangle clipBounds,                          Insets insets, Rectangle bounds,                          TreePath path, int row,                          boolean isExpanded, boolean hasBeenExpanded,                          boolean isLeaf)  {    // FIXME: not implemented.  }