Two Laptop Bag*
The moose likes Swing / AWT / SWT and the fly likes MouseDragScrolling in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "MouseDragScrolling in Java" Watch "MouseDragScrolling in Java" New topic
Author

MouseDragScrolling in Java

Edgar Colmenares
Greenhorn

Joined: Apr 06, 2012
Posts: 2
I want to build a MouseDragScrolling like Android over Java for a big touch screen something like this http://jqueryfordesigners.com/demo/scrollable-timelines.html I have this example http://java-swing-tips.blogspot.mx/2008/06/mouse-drag-auto-scrolling.html but i want to use the MouseDragScrolling over a JTable or other component and block and distinct the MouseClick and the MouseDrag.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

You could try an approach I suggested in another forum last year:
https://forums.oracle.com/forums/thread.jspa?threadID=1348363

And since this is GUI related, I'm moving it to an appropriate section.

edit: Changed the link to the thread in which the code was first posted, in 2010.


luck, db
There are no new questions, but there may be new answers.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Other related threads where this approach was suggested:
http://www.coderanch.com/t/544942/GUI/java/JLabel-pan-image
http://www.coderanch.com/t/552486/GUI/java/Jittery-Pan-Scrolling
https://forums.oracle.com/forums/thread.jspa?threadID=2191416
Edgar Colmenares
Greenhorn

Joined: Apr 06, 2012
Posts: 2
Thanks, sorry.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MouseDragScrolling in Java
 
Similar Threads
swing interface distorted.
component communication
Swing interfcae distorted look?
Drag and drop images
actionListener for JLabel