previous | start | next

## Menu Items

- Add menu items and submenus with the `add` method:

      JMenuItem fileExitItem = new JMenuItem("Exit");
      fileMenu.add(fileExitItem);

- A menu item has no further submenus
- Menu items generate action events
- Add a listener to each menu item:

      fileExitItem.addActionListener(listener);

- Add action listeners only to menu items, not to menus or the menu bar

previous | start | next