title: Is it possible to add MouseMotionListener to BufferedImage?
body: <p>I am developing an application that drag and scale image in Jpanel.</p>
  
  <p>The image is stored inside a JLabel.</p>
  
  <p>But when i am adding the MouseMotionListener to the panel, then whole window is dragging and when i am trying to add MouseMotionListener to I can't select the sides of image to scale it.</p>
  
  <p>So can i directly add MouseMotionListener to BufferedImage?</p>
  
  <p>With any component I add MouseMotionListener, it don't allow me to select sides of image.
  sides means all direction for to scale image.</p>
  
  <p>Window :</p>
  
  <pre><code>        addMouseListener(handler);
          addMouseMotionListener(handler);
  </code></pre>
  
  <p>JLabel :</p>
  
  <pre><code>        label.addMouseListener(new MouseHandler());
          label.addMouseMotionListener(new MouseHandler());
  </code></pre>
  
  <p>Here <code>MouseHandler</code> is a class defined for various operation like <code>mousePressed</code>, <code>mouseDragged</code>, <code>mouseMove</code>, etc.</p>
  
  <p><strong>Any idea why it is behaving like that?</strong></p>