Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSplitPane with 2 JScrollPanes sincroniced

843805Apr 17 2007 — edited Apr 17 2007
Hi 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2007
Added on Apr 17 2007
6 comments
97 views