java - context menu navigation with arrow keys -


all,

i member of group maintain huge java application. in application there frame should respond arrow key events. frame should support right-mouse button click upon context menu should displayed.

so far , works intended. trouble starts when try navigate context menu arrow keys.

it looks keyboard focus not on context menu on frame , therefore when try hit up/down arrow keys - frame reacts , not context menu.

what best way deal situation? using latest java 1.8 here. possible give focus context menu?

thank pointers.


Comments

Popular posts from this blog

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -