edit.add(copy); add(edit);
    public void createLayout() {        file.add(open_file);        file.add(quit);        add(file);                view.add(view_source);        add(view);                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"));                    add(demos);                debug.add(new AbstractAction("draw boxes") {            public void actionPerformed(ActionEvent evt) {                root.panel.view.c.debug_draw_boxes = !root.panel.view.c.debug_draw_boxes;                root.panel.view.repaint();            }        });                debug.add(new AbstractAction("draw line boxes") {            public void actionPerformed(ActionEvent evt) {                root.panel.view.c.debug_draw_line_boxes = !root.panel.view.c.debug_draw_line_boxes;                root.panel.view.repaint();            }        });                debug.add(new AbstractAction("draw inline boxes") {            public void actionPerformed(ActionEvent evt) {                root.panel.view.c.debug_draw_inline_boxes = !root.panel.view.c.debug_draw_inline_boxes;                root.panel.view.repaint();            }        });                debug.add(new AbstractAction("DOM tree inspector") {            public void actionPerformed(ActionEvent evt) {                JFrame frame = new JFrame();                frame.getContentPane().add(new DOMInspector(root.panel.view.doc));                frame.pack();                frame.setSize(250,500);                frame.show();            }        });                        add(debug);    }