ActionMap am = new ActionMap();
ActionMap am = new ActionMapUIResource();
  ActionMap createActionMap()  {    Action[] actions = textComponent.getActions();    ActionMap am = new ActionMap();    for (int i = 0; i < actions.length; ++i)      {        String name = (String) actions[i].getValue(Action.NAME);        if (name != null)          am.put(name, actions[i]);      }    return am;  }