docs: public static void addShortcutToComponent(final JComponent component, final KeyStroke keystroke,
  		final int whenInFocus, final String actionCommand, final Action action)
  	{
  		final InputMap keyMap = new ComponentInputMap(component);
  		keyMap.put(keystroke, actionCommand);
  		final ActionMap actionMap = new ActionMapUIResource();
  		actionMap.put(actionCommand, action);
  		SwingUtilities.replaceUIActionMap(component, actionMap);
  		SwingUtilities.replaceUIInputMap(component, whenInFocus, keyMap);
  	}