Steve Clark wrote:I have a VERTICAL splitpane, it include 2 scrollpanes and 1 JPanel.
I want to a scrollBar of one scrollpane to control the other 2 panes at the same time.
if moving the scrollBar , then the whole splitpane move together.
I'm confused. You have two scroll panes and another panel that isn't in a scroll pane, but you want
them all to scroll together??
I won't say it's impossible, but it would be a lot easier if you put the panel in a scroll pane too, so
they can share bounded range models. You can even hide the scroll bar of the scroll pane holding
the panel, so it doesn't look like its in a scroll pane. See http://www.coderanch.com/t/345900/ for
an example of locked scrolling with a hidden scroll bar.
Alternatively, you could place the entire contents of your split pane in a single scroll pane. Then of
course they would scroll together.