Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
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
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Swing / AWT / SWT
Open Menu on pressig ALT-key
Theo van Loon
Ranch Hand
Posts: 71
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello all,
i know how to activate a menuitem by by using setAccelerator e.g.
exitItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.ALT_DOWN_MASK));
But how can i activate the entire menu just by pressing alt?
Thanks!!
A. Wolf
Ranch Hand
Posts: 57
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
listen for keyCode 18 via keyListener? can you set the menu bar expanded or selected?
Nathan Pruett
Bartender
Posts: 4121
I like...
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can set the mnemonic for the menu to the ALT key...
fileMenu.setMnemonic( KeyEvent.VK_ALT );
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I don't even know how to spell CIA. But this tiny ad does:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Mnemonics in a JButton
setMnemonic doubt
Problem setMnemonic for Menu Items
HELP - AWT MENU ( Accesskey,Modifiers,Shortcut keys)
Activate menu by pressing button on panel.
More...