public SComponent addComponent(SComponent c, Object constraint) { if (c != null) { if (layout != null) layout.addComponent(c, constraint);  getComponentList().add(c); getConstraintList().add(constraint); c.setParent(this);    }  return c;
public SComponent addComponent(SComponent c) { return addComponent(c, null);
    public SComponent addComponent(SComponent c, Object constraint) {        if (c != null) {            if (layout != null)                layout.addComponent(c, constraint);            getComponentList().add(c);            getConstraintList().add(constraint);            c.setParent(this);            // processContainerEvent(new ContainerEvent(this,            // ContainerEvent.COMPONENT_ADDED, c));        }        return c;    }