public JMenuItem add (Action a)

Appends a new menu item to the end of the menu which dispatches the specified Action object.

Parameters:
a    the Action to add to the menu

Returns:  the new menu item

See also:
Action