here\'s a runnable piece of code that shows what my \"problem\" is.
I\'ve got a JTextArea wrapped in a JScrollPane. When I change the text
JTextArea
JScrollPane
Answering my own question: I'm not exactly sure this is the best way to solve my issue, but setting the JTextArea's caret using setCaretPosition(0) seems to work fine:
JTextArea's
setCaretPosition(0)
jta.setText( sb.toString() ); jta.jta.setCaretPosition( 0 );