InputMap
provides a binding between an input event
(currently only
KeyStroke
s are used)
and an
Object
.
InputMap
s
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.