By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,776 Members | 1,302 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,776 IT Pros & Developers. It's quick & easy.

how to define shortkeys for menus?

P: n/a
how can i define shortkeys for menu titles (not menuitems)? i don't want to
use swing but awt. on the web there are 1000 examples how to do this for
items but for titles???
the keys should be underlined and be a combination ALT+Key.

Peter
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter wrote:
how can i define shortkeys for menu titles (not menuitems)? i don't
want to use swing but awt. on the web there are 1000 examples how to
do this for items but for titles???
the keys should be underlined and be a combination ALT+Key.

Peter


java.awt.MenuItem.setShortcut(). The class java.awt.Menu extends
java.awt.MenuItem; therefore, all methods callable on MenuItems are
valid for Menus; thus, java.awt.Menu.setShortcut() also exists.

- --
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAdh8InwjA8LryK2IRAq4LAKD90V3J/sBived+ffGxwQQcwMhEQQCdEhY1
ZhjiX5q6S3q0/qr/N/NV5lU=
=i67y
-----END PGP SIGNATURE-----
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.