c.setSize(bounds.width - eOffset - TREE_ICON_GAP, bounds.height);
c.setSize(bounds.width - eOffset, bounds.height);
    public void doLayout()    {      // The offset of the editing component.      int eOffset;      // Move the component to the left, leaving room for the editing icon:      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);      // Span the editing component near over all window width.      c.setSize(bounds.width - eOffset - TREE_ICON_GAP, bounds.height);      /*       * @specnote the Sun sets some more narrow editing component width (it is       * not documented how does it is calculated). However as our text field is       * still not able to auto - scroll horizontally, replicating such strategy       * would prevent adding extra characters to the text being edited.       */    }