Menu Shortcut Letter

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Menu Shortcut Letter

Postby pauldshep » Wed Mar 18, 2009 9:13 am

I would like to attach a shortcut Letter to some of my menu items (not an accelerator). This is where the letter is underlined in the menu text and when you type Alt-Letter the menu either drops down or executes. Does anyone know how to do this? I seem to remember in a Borland product you preceeded the letter in the menu text with a "&" and implemented a key event handler.
pauldshep
 
Posts: 1
Joined: Wed Mar 18, 2009 9:01 am

Re: Menu Shortcut Letter

Postby Eric Clayberg » Wed Mar 18, 2009 11:39 am

Set the mnemonic property.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: Google [Bot] and 1 guest