|
Code Samples Index These code examples and other materials are subject to Sun Microsystems, Inc. Legal Terms Setting a Mnemonic for a Menu At least one menu in a menu bar should have a mnemonic. This makes all the menus and menu items accessible.
JMenu menu = new JMenu("Menu");
menu.setMnemonic('M');
| ||||
|
| ||||||||||||