I have a problem which seems so elementary that I'm embarrassed to bring it up, but I can't find the solution through the javadocs or my other resources.
I have a JTextPane which I am using to display data, output only. I am placing it in a JScrollPane. What I want to do is have it scroll to the bottom when I add text to it. Manually setting the vertical scroll bar to its maximum value doesn't seem to work.