I am an experienced Java programmer, but a Swing newbie so please bear with me.
I wish to have a JPopupWindow which has keyboard focus. I want to respond to arrow keys, escape (to close the menu) and Enter (to invoke the item). Must I add a KeyListener to the menu and code all this myself, or is there some sort of "mode" I can set to activate this behavior which seems like it ought to be standard.
The standard Swing tutorial section on JPopupMenus speaks only of mnemonics and accelerators. I don't particularly want those.
Hard to believe that this is totally against the grain of JPopupMenu.
What is best way to get something like I want implemented?