demos.add( new LoadAction( "Rollovers with :hover ", "demo:demos/hover.xhtml"));
    public void createLayout() {        file.add( root.actions.open_file );        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( "Hamlet", "demo:demos/hamlet.xhtml"));        demos.add( new LoadAction( "Alice", "demo:demos/alice/alice.xhtml"));        demos.add( new LoadAction( "Financial Report", "demo:demos/report.xhtml"));        try {            //demos.add(new LoadAction("File Listing (Win)","file:///c:"));            //demos.add(new LoadAction("File Listing (Unix)","file:///"));        } catch ( Exception ex ) {            u.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("Minium Anti Aliasing");        anti.add( new JCheckBoxMenuItem( new AntiAliasedAction("Lowest (Default)",TextRenderingHints.DEFAULT_HINTS_FASTEST) ) );        anti.add( new JCheckBoxMenuItem( new AntiAliasedAction("Low",TextRenderingHints.DEFAULT_HINTS_QUALITY_LOW) ) );        anti.add( new JCheckBoxMenuItem( new AntiAliasedAction("Medium",TextRenderingHints.DEFAULT_HINTS_QUALITY_MEDIUM) ) );        anti.add( new JCheckBoxMenuItem( new AntiAliasedAction("High",TextRenderingHints.DEFAULT_HINTS_QUALITY_HIGH) ) );        anti.add( new JCheckBoxMenuItem( new AntiAliasedAction("Highest",TextRenderingHints.DEFAULT_HINTS_QUALITY_HIGHEST) ) );        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 );    }