I was wondering if anyone could help me with a problem I am having with an application I am writing in Java Swing. The app has two JScrollPanes that contain components of the same dimensions, and I need the link these two panes together so that when one is scrolled it also scrolls the second pane by the same amount. Does anyone know how to achieve this?