inputMap_whenInFocusedWindow = map;
if (map != null && !(map instanceof ComponentInputMap)) throw new IllegalArgumentException("WHEN_IN_FOCUSED_WINDOW " + "InputMap must be a ComponentInputMap"); inputMap_whenInFocusedWindow = (ComponentInputMap)map;
  public final void setInputMap(int condition, InputMap map)  {    enableEvents(AWTEvent.KEY_EVENT_MASK);    switch (condition)      {      case WHEN_FOCUSED:        inputMap_whenFocused = map;        break;      case WHEN_ANCESTOR_OF_FOCUSED_COMPONENT:        inputMap_whenAncestorOfFocused = map;        break;      case WHEN_IN_FOCUSED_WINDOW:        inputMap_whenInFocusedWindow = map;        break;              case UNDEFINED_CONDITION:      default:        throw new IllegalArgumentException();      }  }