• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Keyboard shortcuts for 'Menu bars in an Applet' not working!!

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to have shortcuts to the menu bar items which is part of an applet.
The first time the focus is on Applet, if I use (ALT + key) together, my menu is selected properly
If I press just ALT, IE menu gets the focus and now (ALT + key) stops working for my menu.
I have a JInternalFrame in the applet which internally contains JTable. If I select a cell in the table, (ALT+key) starts working but clicking on anywhere else on the internalframe doesn't help. Even clicking on a cell doesn't help the purpose of having keyborad shortcuts since mouse has to be used.
The related problem I get is that if the cell is selected in the table and I press (ALT + key), my menu item gets selected but also the cell goes in edit mode. I don't want this to happen and want to disable ell editing on ALt+keydown


IS there any way to circumvent this problem?

Please Help!!!
 
Rohini Juneja
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have checked the following message thread
https://coderanch.com/t/333649/GUI/java/mnemonics-Java-Applet


I understand, If I am not focussed on my applet, IE menus will be invoked.
But once I have the focus on my applet, the menus work only when I press ALT and the desired key (e.g S) together. If I press just ALT, the focus is lost from my applet. 'File' on IE menu is highlighted. If I do ESC, ALT+S doesn't work???
 
Water proof donuts! Eat them while reading this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic