super ("MenuTest");
MenuItem mi;
Menu file = new Menu ("File", true);
file.add ("Open");
file.add (mi = new MenuItem ("Close"));
mi.disable();
Menu extras = new Menu ("Extras", false);
extras.add (new CheckboxMenuItem ("What"));
mi = extras.add (new MenuItem ("Yo"));
mi = extras.add (new MenuItem ("Yo"));
file.add (extras);
file.addSeparator();
file.add ("Quit");
Menu help = new Menu("Help");
help.add ("About");
MenuBar mb = new MenuBar();
mb.add (help);
mb.add (file);
mb.setHelpMenu (help);
setMenuBar (mb);
resize (200, 200);