title: adding action listener to an image
body: <p>I insert an image to a <code>JPanel</code>.  I write this code.</p>
  
  <pre><code>public void paint(Graphics g)
  {
  
      img1=getToolkit().getImage("/Users/Boaz/Desktop/Piece.png");
      g.drawImage(img1, 200, 200,null);
  
  }
  </code></pre>
  
  <p>I want to add an action listener to that picture, but it does not have an <code>addActionListener()</code> method.  How can I do that without putting the image in a button or label?</p>