• Advertisement
Sign in to follow this  

[java] JScrollBar continue firing change event at the ends..?

This topic is 4253 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Anyone know an easy way to make a JScrollBar keep firing the change event even when you are at each end of the bar? I'm trying to make something keep scrolling even once you get to the end of the motion on the bar.. like when you are scrolling a table and you get to the bottom, if you keep pressing down it adds another row. Currently the only way i can think to do it is to add a mouse listener that detects the mouse down event and if you are at the bottom keeps triggering the event on a timer. Just wondering if there is a better/easier way to do it that I'm missing?

Share this post


Link to post
Share on other sites
Advertisement
Ah well, i just did it by adding a mouselistener to the two buttons of the scrollbar which starts a timer that just keeps scrolling. Maybe not the most elegant solution but it works.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement