Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization 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
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Multi-Key Accelerator

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to assign a multi keyboard accelerator to a JMenuItem.
(I want that the shortcut will be something like: Ctrl+P,M).

How can I do it?

Thanks,
Efrat
[ August 22, 2006: Message edited by: Efrat Bar-Nahum ]
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a menu like the following one:

MenuBar
|--File
| |
| |-Open
| |-Save
| |-Close
|
|--Preferences
| |
| |-Menu

...

And you would like to have an quick access to Preferences -> Menu?

So, your menu would look like this:



Now if you will press |Ctrl| + |P| you will open the FileMenu.
If you press |Ctrl| + |O| you will call the OpenMenuItem (when first pressed |Ctrl| + |P|)

In other words:

To fast access File --> Open
you will have to hold down |Ctrl| and then press |F|, then |O|.

I hope I understood your question correctly

Greetings,
Thorsten
 
Thorsten Klonk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for "Multi-Posting"
[ August 28, 2006: Message edited by: Thorsten Klonk ]
 
You don't like waffles? Well, do you like this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!