action = new TreeAction();
  protected void installKeyboardActions()  {    InputMap focusInputMap =      (InputMap) SharedUIDefaults.get("Tree.focusInputMap");    SwingUtilities.replaceUIInputMap(tree, JComponent.WHEN_FOCUSED,                                     focusInputMap);    InputMap ancestorInputMap =      (InputMap) SharedUIDefaults.get("Tree.ancestorInputMap");    SwingUtilities.replaceUIInputMap(tree,                                 JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,                                 ancestorInputMap);    action = new TreeAction();    SwingUtilities.replaceUIActionMap(tree, getActionMap());      }