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:
![]() |
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 |