JSplitPane with 2 JScrollPanes sincroniced
843805Apr 17 2007 — edited Apr 17 2007Hi everyone,
I have a problem, and I haven't been able to solve it yet, this is it: I have a SplitPane, on its left side I have a jTable, and on its rigth side I have a jPanel with labels, I need them to have independent horizontal Scrolls but I need one only vertical Scroll at the rigth so they move in a sincroniced way.
I've tried using one Scroll Pane for all the Split Pane but then I Scroll both the titles of the jTable and the jPanel and I need them where they are.
Now I have the split pane with two Scroll Panes one with the table and the other with the Panel I think I have to make one of my Scrolls listen to the other and scroll by what it hears but I don't know how to do that... Which method should I rewrite? what do I need to implement to listen to the Scroll in an other Scroll pane?
Can any one help me?