title: Clicking on a drawn object
body: <p>I've got a class called <code>Shape</code> which inherits from JPanel.</p>
  
  <p>A number of sub-classes in turn extend the <code>Shape</code> classes, one for each type of shape.</p>
  
  <p>Each shape has its own overriden <code>paint()</code> method, which draws the respective shape.</p>
  
  <p>I would like to be able to click on any shape, and am trying to implement this logic for now.  Please note that each shape has been added to an arrayList.</p>
  
  <p>However, the contains statement always returns false, even when I have clearly clicked inside the shape.</p>
  
  <p>Any ideas?</p>