try { Class clazz = SessionManager.getSession().getCGManager().getLookAndFeel().getClassLoader().loadClass("org.wings.plaf.css1.MenuBarClientCG");  menuBar.setCG((org.wings.plaf.MenuBarCG)clazz.newInstance()); } catch (Exception e) { System.err.println(e); }
    public Desktop() {        frame = new SFrame("Desktop");        StaticResource staticResource = new ClasspathResource(getClass().getClassLoader(),                                                              "desktop/menu.js");        staticResource.setMimeType("text/javascript");        frame.addHeader("<script type=\"text/javascript\" src=\"" + staticResource.getURL() + "\" />");        SContainer contentPane = frame.getContentPane();        editorNumber = 0;        SMenuBar menuBar = createMenu();        try {            Class clazz = SessionManager.getSession().getCGManager().getLookAndFeel().getClassLoader().loadClass("org.wings.plaf.css1.MenuBarClientCG");                        menuBar.setCG((org.wings.plaf.MenuBarCG)clazz.newInstance());        }        catch (Exception e) {            System.err.println(e);        }        contentPane.add(menuBar);        desktop = new SDesktopPane();        // add the frames to the window-menu ..        desktop.addContainerListener(new SContainerListener() {                public void componentAdded(SContainerEvent e) {                    SInternalFrame frame = (SInternalFrame) e.getChild();                    SMenuItem windowItem = new WindowMenuItem(desktop, frame);                    windowMenu.add(windowItem);                }                public void componentRemoved(SContainerEvent e) {                    SInternalFrame frame = (SInternalFrame) e.getChild();                    SMenuItem windowItem = new WindowMenuItem(frame);                    windowMenu.remove(windowItem);                }            });        contentPane.add(desktop);                newEditor().setText(getStory());        frame.show();    }