Ben Trafford
Posts: 7
Nickname: btrafford
Registered: May, 2002
|
|
Re: JMenuItem.setText question.
|
Posted: May 20, 2002 11:39 PM
|
|
> If I remember correctly, you use the item's (JMenu or > JMenuItem) setMnemonic() method, to have the > underlined letter that you can use in combination > with opening the menu via shorcuts (like "Alt-F" then > "X" to exit, for example). To get the > application-wide shortcut, or accelerator > (like Ctrl-S to save, for example), you use the > setAccelerator().
With a bit of research into the API docs, I figured it out, from your help. Many thanks!
|
|