public static void setAccelerator ( final JMenuItem jmi , final Character keyChar , final int modifiers ) { jmi . setAccelerator ( KeyStroke . getKeyStroke ( keyChar , modifiers ) ) ; }
Sets the accelerator for the given menuitem and the given key char and the given modifiers .