title: Java - Scroll image by mouse dragging
body: <p>I would like to make a join.me like in Java.</p>
  
  <p>I've made the screen capture part but now I want to scroll in the image by dragging the mouse.</p>
  
  <p>Here is a screen of what i've made:
  <img src="https://i.stack.imgur.com/6uxqM.png" alt="enter image description here"></p>
  
  <p>First of all, I want to replace the scroll bars by mouse dragging the image. Is it possible?
  Then I want to remove those scroll bars.</p>
  
  <p>Today, users are able to change the zoom and use their mouse wheel to zoom in/out.</p>
  
  <p>Could you help me?</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <p>Edit: I've found  the way to hide the scroll bar using:</p>
  
  <pre><code>this.jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  this.jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
  </code></pre>