title: How to change menu title color on mouse over (in java Swing)?
body: <p>i want the menu on the menu bar to change its background color on mouse over .. like in most applications.<br>
  i want this effect -> <a href="http://4.1m.yt/nNyf_lbxp.png" rel="nofollow">Sample Picture</a><br>
  what i tried so far ...   </p>
  
  <pre><code>public class Menu extends JMenuBar implements ActionListener {
  
  private JMenuItem fileItem_close;
  private final MouseListener mouseAction = new MouseAdapter() { //i use this to apply the mouse event
      @Override
      public void mouseEntered(MouseEvent e) {
          JMenu item = (JMenu)e.getSource(); //is this implementation correct ?
          item.setOpaque(true);
      };
  
      @Override
      public void mouseExited(MouseEvent e) {
          JMenu item = (JMenu)e.getSource(); 
          item.setOpaque(false);
      };
  };
  
  
  public Menu() {
      initFileMenu();
  }
  
  private void initFileMenu() {
      JMenu fileMenu = new JMenu("File");
      fileMenu.setMnemonic('F');
      fileMenu.setRolloverEnabled(true);
  
      fileItem_close = new JMenuItem("Close");
      fileItem_close.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, KeyEvent.ALT_MASK)); //exit on pressing (Alt+F4)
      fileItem_close.addActionListener(this);
  
      fileMenu.add(fileItem_close);
      fileMenu.setRolloverEnabled(true);
      fileMenu.addMouseListener(mouseAction);
      fileMenu.setBackground(new Color(0x0066FF)); //The background is not visible as JMenu is not opaque by default.
      add(fileMenu);
  }
  
  @Override
  public void actionPerformed(ActionEvent e) {
      JMenuItem source = (JMenuItem)e.getSource();
      if(source == fileItem_close)
          System.exit(0);     
  }
  }
  </code></pre>
  
  <p>The code above is not working, whenever i hover over that menu title nothing happen.<br>
  P.S: i'm not a GUI expert.<br>
  <strong>EDIT :</strong> <em>i'm using Nimbus LaF</em></p>