title: Add actionlistener to jpanel
body: <p>I would like to know if there is any way to add an ActionListener to a JPanel?
  I have no problem adding those to JButtons, but JPanel seems not to have such a method.</p>
  
  <p>Basically I have a bunch of JPanels inside a JFrame with a grid layout and I would like to know if there is any way to know when the user has clicked on one of them.</p>
  
  <p>Any help much appreciated!</p>