if (DefaultTreeCellEditor.this.tree.isEditing()) setLocation(offset, 0); super.doLayout();
int eOffset;   if (editingIcon != null) eOffset = TREE_ICON_GAP + editingIcon.getIconWidth() + ICON_TEXT_GAP; else eOffset = 0;  Rectangle bounds = getBounds(); Component c = getComponent(0); c.setLocation(eOffset, 0);   c.setSize(bounds.width - eOffset - TREE_ICON_GAP, bounds.height);
    public void doLayout()    {      if (DefaultTreeCellEditor.this.tree.isEditing())        setLocation(offset, 0);      super.doLayout();    }