public class MenuHelper extends Object
MenuAction from JMenuBars.
This automatically handles creation and removal of submenus as appropriate.
| Constructor and Description |
|---|
MenuHelper(JMenuBar menuBar) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMenuAction(MenuAction action)
Add a menu item as specified though the
MenuAction argument. |
void |
removeMenuAction(MenuAction action)
Remove a existing menu item as specified though the
MenuAction
argument. |
public MenuHelper(JMenuBar menuBar)
public void addMenuAction(MenuAction action)
MenuAction argument.public void removeMenuAction(MenuAction action)
MenuAction
argument.IllegalArgumentException - if the path specified in
MenuAction.getPath() can not be foundCopyright © 2013. All Rights Reserved.