InputMap provides a binding between an input event
(currently only
KeyStrokes are used)
and an
Object.
InputMaps
are usually used with an
ActionMap,
to determine an
Action to perform
when a key is pressed.
An
InputMap can have a parent
that is searched for bindings not defined in the
InputMap.
As with ActionMap if you create a cycle, eg:
InputMap am = new InputMap();
InputMap bm = new InputMap():
am.setParent(bm);
bm.setParent(am);
some of the methods will cause a StackOverflowError to be thrown.