Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MouseDragScrolling in Java

 
Edgar Colmenares
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, sorry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic