} catch (Exception e) { System.err.println(e.getMessage()); e.printStackTrace(System.err); }
logFrame.setClosed(true);
    public void postInit(ServletConfig config) {        try {        SContainer contentPane = getFrame().getContentPane();        SMenuBar menuBar = createMenu();        contentPane.add(menuBar);        desktop = new SDesktopPane();        contentPane.add(desktop);        // 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);                }            });        // Tree        SInternalFrame treeFrame = new SInternalFrame();        treeFrame.setTitle("components");        addNewFrame(treeFrame);        treePanel = new TreePanel();        treeFrame.getContentPane().add(treePanel);        modules.put("tree", treePanel);        // Builder        SInternalFrame builderFrame = new SInternalFrame();        builderFrame.setTitle("builder");        addNewFrame(builderFrame);        builderPanel = new SPanel();        builderFrame.getContentPane().add(builderPanel);        modules.put("builder", builderPanel);        // Property        SInternalFrame propertyFrame = new SInternalFrame();        propertyFrame.setTitle("properties");        addNewFrame(propertyFrame);        propertyPanel = new PropertyPanel();        propertyFrame.getContentPane().add(propertyPanel);        modules.put("properties", propertyPanel);        treePanel.getTree().addTreeSelectionListener(new TreeSelectionAdapter());        treePanel.setRoot(builderPanel);        // for testing ..        Example example = new Example();        builderPanel.add(example.createExample());        // Laf        SInternalFrame lafFrame = new SInternalFrame();        lafFrame.setTitle("laf");        addNewFrame(lafFrame);        lafPanel = new LafPanel(modules);        lafFrame.getContentPane().add(lafPanel);        modules.put("laf", lafPanel);	treeFrame.setClosed(true);	builderFrame.setClosed(true);	propertyFrame.setClosed(true);        }        catch (Exception e) {            System.err.println(e.getMessage());            e.printStackTrace(System.err);        }    }