You should be able to use the setCaretPosition() to get it to scroll
where you would like.

Jeff

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 7:19 AM
To: [EMAIL PROTECTED]
Subject: JTextPane - automatic scroll to the top


How can I automatically scroll a JTextPane in a JScrollPane to the top
after running the method setText("String");

Thanks
Hans

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

Reply via email to