OK, my internet connection came back, and jGuru provided the answer:

         receivedTA.scrollRectToVisible(new Rectangle(0, 
receivedTA.getHeight() - 2, 1, 1));

Thanks,

Doug

>I have a JTextArea in a JScrollPane. It's not editable and used only for a 
>running log (i.e. periodically call textarea.append).
>
>However, if I ever scroll up the log, appends no longer scroll it all the 
>way down again.
>
>I was trying to figure out a call such as:
>
>textarea.append("some text");
>textarea.scrollToBottom();
>// or maybe scrollpane.scrollToBottom();


_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to