SAnchor anchor = new SAnchor("/wingset/" + getClass().getName().substring(getClass().getName().indexOf('.') + 1) + ".java");
SAnchor anchor = new SAnchor("../" + getClass().getName().substring(getClass().getName().indexOf('.') + 1) + ".java");
    public WingSetPane() {        setLayout(createResourceTemplate("/templates/ContentLayout.thtml"));        SAnchor anchor = new SAnchor("/wingset/" + getClass().getName().substring(getClass().getName().indexOf('.') + 1) + ".java");        anchor.setTarget("sourceWindow");        anchor.add(new SLabel("view java source code", SOURCE_LABEL_ICON));        add(anchor, "viewSource");        addComponentListener(new SComponentAdapter() {            public void componentShown(SComponentEvent e) {                if (!initialized) {                    SComponent exampleComponent = createExample();                    exampleComponent.setHorizontalAlignment(SComponent.CENTER);                    add(exampleComponent, "content"); // content generated by example                    initialized = true;                }            }        });    }