aspose file tools
The moose likes Swing / AWT / SWT and the fly likes KeyAccelerator for many panels Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "KeyAccelerator for many panels" Watch "KeyAccelerator for many panels" New topic
Author

KeyAccelerator for many panels

Joao Cunha
Greenhorn

Joined: Jul 12, 2004
Posts: 24
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!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: KeyAccelerator for many panels
 
Similar Threads
JTabel and JMenuItem accelerators
Arrow Keys not working in JMenu
ALT_MASK and CTRL_MASK
Key accelerator steals focus from textFields?
Unable to launch JNLP application