The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Fling Scroller
Subject:  Generic FlingScroller
Date:  2007-10-04 07:28:08
From:  rah003
Response to: Generic FlingScroller


It's more less the same code as in the article itself. It doesn't suffer from problem Kirill pointed out because it handles movement in mouseDragged as I've suggested in response to him. The use of timing framework although not mandatory makes it simpler to plug in any kind of animation and gives you more freedom to chain in additional effects, behavior (acceleration, deceleration) or switch underlying timer without any changes to your code.
The main point here was to show that there is something you can do to make your applications not only to look better but to also feel better, which is what you already do. Congratulation. :)

 Feed java.net RSS Feeds