Setting a Mnemonic for a Menu - Java Swing

Java examples for Swing:Menu

Description

Setting a Mnemonic for a Menu

Demo Code

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
}

Related Tutorials