A menu bar at the top of a window contains the name of the pull-down menus. Clicking on a name opens the menu, showing menu items and (optionally) submenus. When a menu item is clicked, all menus are closed and an action event is sent to the program. Like buttons, the general procedure for creating a menu is to a) create a new menu object, b) create a new item object, c) add an ActionListener to the item, c) add the item to the menu. Lastly, the menu is added to the menu bar (see Menu Bars example).