protected HashMap<Object,Action> createActionTable(JTextComponent comp){
  HashMap<Object,Action> result;
  int i;
  Action[] actions;
  Action action;
  result=new HashMap<Object,Action>();
  actions=comp.getActions();
  for (i=0; i < actions.length; i++) {
    action=actions[i];
    result.put(action.getValue(Action.NAME),action);
  }
  return result;
}

protected HashMap < Object , Action > createActionTable ( JTextComponent comp ) { HashMap < Object , Action > result ; int i ; Action [ ] actions ; Action action ; result = new HashMap < Object , Action > ( ) ; actions = comp . getActions ( ) ; for ( i = 0 ; i < actions . length ; i ++ ) { action = actions [ i ] ; result . put ( action . getValue ( Action . NAME ) , action ) ; } return result ; }
the following two methods allow us to find an action provided by the editor kit by its name .
