InputMap focusedWindowMap = SwingUtilities.getUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW); if (focusedWindowMap == null) focusedWindowMap = new ComponentInputMapUIResource(menuItem); focusedWindowMap.put(menuItem.getAccelerator(), "doClick"); SwingUtilities.replaceUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW, focusedWindowMap);  ActionMap UIActionMap = SwingUtilities.getUIActionMap(menuItem); if (UIActionMap == null) UIActionMap = new ActionMapUIResource(); UIActionMap.put("doClick", new ClickAction()); SwingUtilities.replaceUIActionMap(menuItem, UIActionMap);
  protected void installKeyboardActions()  {    // FIXME: Need to implement  }