code: public static void addShortcutToComponent(final JComponent component, final KeyStroke keystroke,
  		final String actionCommand, final Action action)
  	{
  		addShortcutToComponent(component, keystroke, JComponent.WHEN_IN_FOCUSED_WINDOW,
  			actionCommand, action);
  	}
docs: Adds the shortcut to component.
  
  @param component
  the component
  @param keystroke
  the keystroke
  @param actionCommand
  the action command
  @param action
  the action