exampleComponent.setHorizontalAlignment(SComponent.CENTER);
exampleComponent.setHorizontalAlignment(SConstants.CENTER);
    protected void initializePanel() {        if (!initialized) {            SComponent exampleComponent = createExample();            exampleComponent.setHorizontalAlignment(SComponent.CENTER);            add(exampleComponent, "content"); // content generated by example            initialized = true;        }    }