• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Keyboard navigation in JPopupMenu

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic