Java examples for Swing:Menu
Setting a Mnemonic for a Menu
import javax.swing.JMenu; public class Main { public static void main(String[] argv) { JMenu menu = new JMenu("Menu"); menu.setMnemonic('M'); }//from w w w . j a v a 2 s . com }