Keyboard navigation in JPopupMenu
posted 15 years ago
I am developing a beam that extend from a JLabel, when this bean gain the focus, a JPopupMenu with 4 JMenuItem will be displayed and let user to choose a value. Then update back to the JLabel. The problem is when the JPopupMenu is displayed, I can only use mouse to select. I cannot use keyboard to control it. I found there is a listener named MenuKeyListener, but not sure if it can help and how to implement this listener to a JPopupMenu. But if it is a JMenu, it seems it can support keyboard operation automatically, right?