Specifications

Sun Services
Java™ Programming Language
Module 12, slide 9 of 18
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
How to Create a Menu
1. Create a MenuBar object, and set it into a menu
container, such as a Frame.
2. Create one or more Menu objects, and add them to the
menu bar object.
3. Create one or more MenuItem objects, and add them
to the menu object.