parentInputMap.put(KeyStroke.getKeyStroke (((KeyStroke)keys[i]).getKeyCode(), convertModifiers (((KeyStroke)keys[i]).getModifiers())), (String)ancestorMap.get((KeyStroke)keys[i]));
KeyStroke stroke = (KeyStroke)keys[i]; String actionString = (String) ancestorMap.get(stroke);
  protected void installKeyboardActions()   {    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap");    InputMapUIResource parentInputMap = new InputMapUIResource();    // FIXME: The JDK uses a LazyActionMap for parentActionMap    ActionMap parentActionMap = new ActionMap();    action = new TableAction();    Object keys[] = ancestorMap.allKeys();    // Register key bindings in the UI InputMap-ActionMap pair    // Note that we register key bindings with both the old and new modifier    // masks: InputEvent.SHIFT_MASK and InputEvent.SHIFT_DOWN_MASK and so on.    for (int i = 0; i < keys.length; i++)      {        parentInputMap.put(KeyStroke.getKeyStroke                      (((KeyStroke)keys[i]).getKeyCode(), convertModifiers                       (((KeyStroke)keys[i]).getModifiers())),                           (String)ancestorMap.get((KeyStroke)keys[i]));        parentInputMap.put(KeyStroke.getKeyStroke                      (((KeyStroke)keys[i]).getKeyCode(),                        ((KeyStroke)keys[i]).getModifiers()),                           (String)ancestorMap.get((KeyStroke)keys[i]));        parentActionMap.put          ((String)ancestorMap.get((KeyStroke)keys[i]), new ActionListenerProxy           (action, (String)ancestorMap.get((KeyStroke)keys[i])));      }    // Set the UI InputMap-ActionMap pair to be the parents of the    // JTable's InputMap-ActionMap pair    parentInputMap.setParent      (table.getInputMap       (JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).getParent());    parentActionMap.setParent(table.getActionMap().getParent());    table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).      setParent(parentInputMap);    table.getActionMap().setParent(parentActionMap);  }