Changing the Current Menu Bar

You can add multiple menu bars to a form, but only one can be the current menu bar. The current menu bar is displayed in the Form Designer and initially displayed when the form is run. You can write code to switch the current menu bar during runtime.

To change the current menu bar:

  1. In the Component Inspector, select the form's node and select the Code Generation properties tab.
  2. Select the menu bar you want to activate from the combo box for the Menu Bar property.
Tip Only the AWT MenuBar can be used as the main menu for AWT forms, and only the Swing JMenuBar can be used as the main menu for Swing forms.
See also
Creating a 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

Legal Notices