title: how to add mouse listener to JLabel which contain image
body: <p>I have added an image to a <code>Jlabel</code> and I want to add mouse listener to it.
  I don't know to add a mouse listener to the <code>Jlabel</code> that contains the image.</p>
  
  <p>So anyone who knows how to implement this please tell me.</p>
  
  <p>I want to add a mousedragged listener to the <code>JLabel</code>.
  When the user drags it, it should work.</p>
  
  <pre><code>MouseHandler mk = new MouseHandler();
  JLabel label = new JLabel();
  label.addMouseListener(mk);
  </code></pre>
  
  <p>I have implemented a listener in the class that extends mouse adapter.</p>