code: public static void setAccelerator(final JMenuItem jmi, final int keyCode, final int modifiers)
  	{
  		jmi.setAccelerator(KeyStroke.getKeyStroke(keyCode, modifiers));
  	}
docs: Sets the accelerator for the given menuitem and the given key code and the given modifiers.
  
  @param jmi
  The JMenuItem.
  @param keyCode
  the key code
  @param modifiers
  the modifiers