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);
}

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 ) ; }
adds an action that is also represented in the main menu .
