Specifications

Sun Services
Java™ Programming Language
Module 12, slide 10 of 18
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Creating a MenuBar
1 Frame f = new Frame("MenuBar");
2 MenuBar mb = new MenuBar();
3 f.setMenuBar(mb);
Solaris OS
Microsoft Windows