Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • 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???
 
You don't like waffles? Well, do you like this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic