title: Java Swing JMenu Mnemonic
body: <p>I have a menu that I created using JMenu. I want to assign a shortcut key Alt-F to this menu. I used setMnemonic('F') to do that, but the menu does not recognise the mnemonic.</p>
  
  <p>What is the best way to troubleshoot or debug this problem ? I find that setting a break point does not help that much.</p>
  
  <p>Thank you.</p>
  
  <p>Code Snippet:</p>
  
  <pre><code>//higher up in variable declaration
  /** Menus on the menu bar */
  private JMenu uiFindMnu           = new JMenu("Find");
  ...
  //inside the constructor
  // set mnemonic for the Find menu
  uiFindMnu.setMnemonic('F');
  </code></pre>