title: addMouseListener for a JPanel
body: <p>Today I have a problem..
  My program make a 8x8 grid and show the coord when I click on a <code>JButton</code>.</p>
  
  <p>BUT I refuse to use <code>JButton</code> and I need to go for <code>JPanel</code>.. But my <code>addMouseListener</code>  isn't working so I don't know how is it possible to fix that I'm searching since 4h.....</p>
  
  <pre><code>    package coordboutons;
  
      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;
  
      public class CoordBoutons extends JFrame {
  
          CoordBoutons() {
              super("GridLayout");
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              Container contenant = getContentPane();
              contenant.setLayout(new GridLayout(8, 8));
  
              for (int i = 0; i &lt; 8; i++) 
                  for (int j = 0; j &lt; 8; j++)
                      contenant.add(new CaseEchiquier(i, j));
  
              pack();
              setVisible(true);
          }
  
          **class CaseEchiquier extends JPanel** {
              private int lin, col;
              CaseEchiquier(int i, int j) {
                  lin = i;
                  col = j;
                  setPreferredSize(new Dimension(80, 75));
                  setBackground((i + j) % 2 == 0 ? Color.WHITE : Color.GRAY);
                  addActionListener(new ActionListener() {
                      public void actionPerformed(ActionEvent evt) {
                          System.out.println((char)('a' + col) + "" + (8 - lin));
  
                      }
                  });
              }
  
  
          }
  
          public static void main(String[] args) {
              JFrame.setDefaultLookAndFeelDecorated(true);
              CoordBoutons coordBoutons = new CoordBoutons();
          }
      }
  </code></pre>