How can I use one scroll from one JScrollPane to move another or more than one JScrollPane?
In example:
I have three JTables in separate JScrollPanes. I want to bind the scrollpanes to each other.
If I’ll use one – the another will scroll the same way.
Some kind of Listeners which i can’t find?
Any sugestions?
Best regards.
An approach that preserves the
JTables‘ headers would be to use the sameBoundedRangeModelfor eachJScrollPane‘s vertical scrollbar and add each ScrollPane to a singleJPanel.Reference: