I've added bindings to a JComponent
's input map, by modifying the map returned by jCompInstance.getInputMap()
.
The first time I hit a key which I've binded, it works fine. Somehow, thereafter, the InputMap
gets wiped. What I mean by this is jCompInstance.getInputMap().size()
returns 0
.
I apologise for not offering a minimalistic code example which reproduces the problem; attempts to reduce my huge program have been futile.
What might be going on here?
Is there a way for me to set a watchpoint (in Eclipse) of the JComponent
's internal InputMap
to investigate how this may be occurring?
Thanks in advance!