Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

KeyAccelerator for many panels

 
Joao Cunha
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'm developing a swing application and I want to support key accelerators to my menu options. However, I'm facing some problems with it.
My application contains 5 views (JPanel instances) and the menu is on the main view. Depending on the view that is selected, the key accelerator does not work.
And even on the views that it works, if I select a tab (for exemple), the key accelerator does not work.

Is there a code that I can put on each view to guarantee the key accelerator functionality?

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic