How can I scroll the TextArea from an independent scrollbar in the same manner as its own scrollbar would scroll it?

John Zukowski

The TextArea component does not expose this, as the scrollbar is part of the native component.

If you can, consider using the JTextArea component which exposes this, allowing you to share the model between the JScrollBar of the JScrollPane that the JTextArea is within and your external JScrollBar.