FileDocCategorySizeDatePackage
simpleMenu.javaAPI DocExample976Mon Mar 24 01:57:54 GMT 1997None

simpleMenu

public class simpleMenu extends Frame

Fields Summary
Constructors Summary
simpleMenu()

        super ("Menu Example");
        Menu m = new Menu ("File", true);
        m.add (new MenuItem ("New Web Browser", new MenuShortcut ('n")));
        m.add (new MenuItem ("New Mail Message", new MenuShortcut ('n", true)));
        m.add (new MenuItem ("New Folder"));
        m.addSeparator ();
        m.add (new MenuItem ("Close"));
        m.add (new MenuItem ("Quit"));
	MenuBar mb = new MenuBar ();
	mb.add (m);
        setMenuBar (mb);
        resize (200, 200);
    
Methods Summary
public static voidmain(java.lang.String[] args)

        simpleMenu f = new simpleMenu();
	f.show();