question: private void addMenuAction ( String id , String label , String menuLabel , int mnemonic , Action action ) { action . putValue ( Action . NAME , menuLabel ) ; action . putValue ( Action . MNEMONIC_KEY , mnemonic ) ; menu . setAction ( id , action ) ; hotkeyManager . registerAction ( id , label , action ) ; }
target:  Adds an action that is also represented in the main menu.