You can use the Form Editor to create and modify menus. The AWT and Swing variants of both MenuBar and PopupMenu (also known as a contextual menu) are supported.
Follow these links for information about creating menu bars, menus, and menu items:
Creating a Menu Bar
Changing the Current Menu Bar
Adding a Menu to a Menu Bar
Creating a Contextual Menu
Adding a Menu Item
Adding an Event Handler to a Menu Item