erg.addComponent((SComponent)getComponentAt(i).clone());
erg.addComponent((SComponent)getComponent(i).clone());
    public Object clone() {        try {            SContainer erg = (SContainer)super.clone();            // uiuiui, layout manager must be cloned as well,...                        // componentList and constraintList contain references to the            // original components / constraints            erg.getComponentList().clear();            erg.getConstraintList().clear();            for ( int i=0; i<getComponentCount(); i++ ) {                erg.addComponent((SComponent)getComponentAt(i).clone());            }            return erg;        }        catch (Exception e) {            e.printStackTrace();            return null;        }    }