I would like to make a join.me like in Java.
I’ve made the screen capture part but now I want to scroll in the image by dragging the mouse.
Here is a screen of what i’ve made:

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.
Today, users are able to change the zoom and use their mouse wheel to zoom in/out.
Could you help me?
Thanks.
Edit: I’ve found the way to hide the scroll bar using:
this.jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
this.jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
Finally, I did it myself. Here is the solution if someone need it:
Create a new class named
HandScrollListenerwith the following code:Then in your frame put:
It should work!