I see the method JScrollPane.setWheelScrollingEnabled(boolean)
to enable or disable the mouse wheel scrolling. Is there any way to adjust the speed of the scrolling, though? It is, in my opinion, ludicrously slow. No matter what size I make the window, the scrolling is about three pixels per click. I'd like it to be much more than that.
Any ideas?
You may have a problem with a system setting or a graphics driver if you experience choppy scrolling on Web pages. The choppy page display could mean that your computer's touch device or mouse is set at too high of a scrolling interval or that the computer's graphics card isn't able to process graphics fast enough.
To correct such issue, we suggest that you adjust the scroll speed of your mouse wheel using the steps below: Click Start > Settings. Go to Devices > Mouse & touchpad. Under Choose how many lines to scroll each time, move the slider to the right to make the speed of your mouse wheel faster.
Just use the reference to your JScrollPane object, get the vertical scroll bar from it using getVerticalScrollBar , and then call setUnitIncrement on it, like this: myJScrollPane. getVerticalScrollBar().
You can try this :
myJScrollPane.getVerticalScrollBar().setUnitIncrement(16);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With