Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Keyboard navigation in JPopupMenu  RSS feed

 
Anthony Kwok
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Anthony
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!