I have a simple Java Swing program defined below: The program consists of a simple JScrollPane with multiple buttons inside of it. Only vertical scrolling is enabled. It works fine. However, the problem is, when I am holding down the ‘shift’ key, vertical scrolling does not work when I am using the mouse wheel to scroll. Vertical scrolling only works
Tag: mousewheel
How to increase the slow scroll speed on a JScrollPane?
I am adding a JPanel in a JScrollPane in my project. All is working fine, but there is one problem about mouse scroll using the mouse-Wheel in JPanel. It’s speed is very slow on scrolling. How to make it faster? My code is : Answer You can set your scrolling speed with this line of code Here is details.