"Il y a peu de choses qui me soient impossibles..."
Stevens Miller wrote:The former would appear to require that I implement an Input/Action map for each component that might get the focus (or, more correctly, would consume the ENTER key-pressed event).
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:
Stevens Miller wrote:The former would appear to require that I implement an Input/Action map for each component that might get the focus (or, more correctly, would consume the ENTER key-pressed event).
You're mistaken there. getInputMap is overloaded; the other version can take a constant that will catch the key binding if the component is an ancestor of the component has focus.
"Il y a peu de choses qui me soient impossibles..."
Stevens Miller wrote:Although it appears you can't just use the with-argument method on the JFrame, as it doesn't exist for JFrames, so I'll still need get/put Map calls for each top-level ancestor component in my GUI.
What do you recommend, Maps or Dispatchers?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
"Il y a peu de choses qui me soient impossibles..."
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
"Il y a peu de choses qui me soient impossibles..."
"Il y a peu de choses qui me soient impossibles..."
"Il y a peu de choses qui me soient impossibles..."
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |