How to increase the JScrollPane scrolling speed?

You may have the questions How to increase the JScrollPane scrolling speed using the mouse wheel? or How to increase speed of scroll bar in JScrollPane?

Default speed of the JScrollPane's scroll bar is very slow. To increase the speed of the scrolling there are many ways of doing this but we can do it by using setUnitIncrement method as follows :


Here scrollPane will be the JScrollPane you are using and 18 is any arbitrary number you can use your own to adjust the speed.
Share on Google Plus

About Pranav

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment


Post a Comment