public void addToActionMap(JComponent component,int condition){
  addToActionMap(component,null,condition);
}

public void addToActionMap ( JComponent component , int condition ) { addToActionMap ( component , null , condition ) ; }
adds the action to the input and action map of the component .
