getInputMap(JComponent.WHEN_FOCUSED)); SwingUtilities.replaceUIActionMap(textComponent, createActionMap());  ActionMap parentActionMap = new ActionMapUIResource(); Action[] actions = textComponent.getActions(); for (int j = 0; j < actions.length; j++) { Action currAction = actions[j]; parentActionMap.put(currAction.getValue(Action.NAME), currAction); }  SwingUtilities.replaceUIActionMap(textComponent, parentActionMap);
getInputMap()); SwingUtilities.replaceUIActionMap(textComponent, getActionMap());
  protected void installKeyboardActions()  {        // This is only there for backwards compatibility.    textComponent.setKeymap(createKeymap());    // load any bindings for the newer InputMap / ActionMap interface    SwingUtilities.replaceUIInputMap(textComponent, JComponent.WHEN_FOCUSED,                                     getInputMap(JComponent.WHEN_FOCUSED));    SwingUtilities.replaceUIActionMap(textComponent, createActionMap());        ActionMap parentActionMap = new ActionMapUIResource();    Action[] actions = textComponent.getActions();    for (int j = 0; j < actions.length; j++)      {        Action currAction = actions[j];        parentActionMap.put(currAction.getValue(Action.NAME), currAction);      }        SwingUtilities.replaceUIActionMap(textComponent, parentActionMap);  }