As you insert a JMenuBar into a grid cell, the menu bar is populated with some
.
To edit those menus, you open the menu editor by selecting 'Edit Menus' from the menu bar's
or by double-clicking the menu bar.
As you open the 'Menu Editor' dialog, only top level menus are displayed. As you move the mouse over a menu, menu items pop up. Clicking a menu or a menu item lets you edit its text. You add, insert or remove menus respectively menu items using the different context menus.
Note: In the menu editor you can undo/redo changes with Ctrl-Z respective Ctrl-Y.
Take a look at a menu's
:
Insert Menu before adds a new menu to the menu bar at the previous position.
Insert Menu after adds a new menu to the menu bar at the following position.
Add Menu adds a submenu to the end of the menu.
Add MenuItem adds a menu item to the end of the menu.
Add CheckBoxMenuItem adds a checkbox menu item to the end of the menu.
Add RadioButtonMenuItem adds a radio button menu item to the end of the menu.
Add Separator adds a menu separator to the end of the menu.
Edit HTML Text opens the
.
Edit Mnemonic lets you
the menu's mnemonic and displayedMnemonicIndex properties.
Define Icons lets you
all kinds of icon properties.
Remove Menu removes the menu from the menu bar.
Menu items, sub-menus and separators have slightly different context menus but you should have no problems using them.
Save as default saves the current menu hierarchy. The next time you insert a JMenuBar into a layout grid, the menu hierarchy will be loaded into the menu bar. To restore the RADi defaults, delete the file defaultmenus from the RADi directory.