Java tutorial
import javax.swing.JMenu; public class Main { public static void main(String[] argv) throws Exception { JMenu menu = new JMenu("Menu"); menu.setMnemonic('M'); } }