public void addChild(Component child){
  components.add(child);
  child.setParent(this);
}

public void addChild ( Component child ) { components . add ( child ) ; child . setParent ( this ) ; }
adds a child to this composite at the end of the list .
