renderer.getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, true); Icon c = renderer.getIcon(); if (c != null) offset = renderer.getIconTextGap() + c.getIconWidth();
if (renderer != null) { if (leaf) editingIcon = renderer.getLeafIcon(); else if (expanded) editingIcon = renderer.getOpenIcon();
  protected void determineOffset(JTree tree, Object value, boolean isSelected,                                 boolean expanded, boolean leaf, int row)  {    renderer.getTreeCellRendererComponent(tree, value, isSelected, expanded,                                           leaf, row, true);    Icon c = renderer.getIcon();    if (c != null)        offset = renderer.getIconTextGap() + c.getIconWidth();    else      offset = 0;  }