demos.add(new LoadAction("Pseudo-elements ", "demo:demos/pseudo-elements.xhtml"));
    public void createLayout() {        file.add(root.actions.open_file);        file.add(root.actions.print);        file.add(new JSeparator());        file.add(root.actions.quit);        add(file);        edit.add(root.actions.cut);        edit.add(root.actions.copy);        edit.add(root.actions.paste);        add(edit);        view.add(view_source);        add(view);        go.add(root.actions.forward);        go.add(root.actions.backward);        add(go);        // CLEAN        demos.add(new LoadAction("Inheritance", "demo:demos/inherit.xhtml"));        demos.add(new LoadAction("Borders", "demo:demos/border.xhtml"));        demos.add(new LoadAction("Backgrounds", "demo:demos/background.xhtml"));        demos.add(new LoadAction("Paragraph", "demo:demos/paragraph.xhtml"));        demos.add(new LoadAction("Line Breaking", "demo:demos/breaking.xhtml"));        demos.add(new LoadAction("Forms", "demo:demos/forms.xhtml"));        demos.add(new LoadAction("Headers", "demo:demos/header.xhtml"));        demos.add(new LoadAction("Nested Divs", "demo:demos/nested.xhtml"));        demos.add(new LoadAction("Selectors", "demo:demos/selectors.xhtml"));        demos.add(new LoadAction("Images", "demo:demos/image.xhtml"));        demos.add(new LoadAction("Lists", "demo:demos/list.xhtml"));        //demos.add( new LoadAction( "Tables", "demo:demos/table.xhtml"));        demos.add(new LoadAction("Link", "demo:demos/link.xhtml"));        demos.add(new LoadAction("Hamlet", "demo:demos/hamlet.xhtml"));        demos.add(new LoadAction("Alice", "demo:demos/alice/alice.xhtml"));        demos.add(new LoadAction("Game Screen", "demo:demos/game/index.xhtml"));        demos.add(new LoadAction("Financial Report", "demo:demos/report.xhtml"));        demos.add(new LoadAction("Rollovers with :hover ", "demo:demos/hover.xhtml"));        try {            //demos.add(new LoadAction("File Listing (Win)","file:///c:"));            //demos.add(new LoadAction("File Listing (Unix)","file:///"));        } catch (Exception ex) {            Uu.p(ex);        }        add(demos);        JMenu debugShow = new JMenu("Show");        debug.add(debugShow);        debugShow.setMnemonic('S');        debugShow.add(new JCheckBoxMenuItem(new BoxOutlinesAction()));        debugShow.add(new JCheckBoxMenuItem(new LineBoxOutlinesAction()));        debugShow.add(new JCheckBoxMenuItem(new InlineBoxesAction()));        debugShow.add(new JCheckBoxMenuItem(new FontMetricsAction()));        JMenu anti = new JMenu("Anti Aliasing");        ButtonGroup implementation = new ButtonGroup();        JRadioButtonMenuItem java2d = new JRadioButtonMenuItem(new AbstractAction("Java2D Implementation") {            public void actionPerformed(ActionEvent evt) {                RenderingContext rc = root.panel.view.getRenderingContext();                int level = rc.getTextRenderer().getSmoothingLevel();                rc.setTextRenderer(new Java2DTextRenderer());                rc.getTextRenderer().setSmoothingLevel(level);                root.panel.view.repaint();            }        });        java2d.setSelected(true);        implementation.add(java2d);        anti.add(java2d);        JRadioButtonMenuItem minium = new JRadioButtonMenuItem(new AbstractAction("Minium Implementation") {            public void actionPerformed(ActionEvent evt) {                RenderingContext rc = root.panel.view.getRenderingContext();                int level = rc.getTextRenderer().getSmoothingLevel();                rc.setTextRenderer(new MiniumTextRenderer());                rc.getTextRenderer().setSmoothingLevel(level);                root.panel.view.repaint();            }        });        implementation.add(minium);        anti.add(minium);        anti.add(new JSeparator());        ButtonGroup anti_level = new ButtonGroup();        addLevel(anti, anti_level, "None", TextRenderer.NONE);        addLevel(anti, anti_level, "Low", TextRenderer.LOW).setSelected(true);        addLevel(anti, anti_level, "Medium", TextRenderer.MEDIUM);        addLevel(anti, anti_level, "High", TextRenderer.HIGH);        debug.add(anti);        debug.add(new ShowDOMInspectorAction());        debug.add(new AbstractAction("Validation Console") {            public void actionPerformed(ActionEvent evt) {                if (root.validation_console == null) {                    root.validation_console = new JFrame("Validation Console");                    JFrame frame = root.validation_console;                    JTextArea jta = new JTextArea();                    root.error_handler.setTextArea(jta);                    frame.getContentPane().setLayout(new BorderLayout());                    frame.getContentPane().add(new JScrollPane(jta), "Center");                    JButton close = new JButton("Close");                    frame.getContentPane().add(close, "South");                    close.addActionListener(new ActionListener() {                        public void actionPerformed(ActionEvent evt) {                            root.validation_console.setVisible(false);                        }                    });                    frame.pack();                    frame.setSize(200, 400);                }                root.validation_console.setVisible(true);            }        });        debug.add(root.actions.generate_diff);        add(debug);    }