Top.Mail.Ru
April 27th, 2005 - Java developers — LiveJournal
? ?

Java developers

April 27th, 2005

01:41 pm - ska_o - A Swing question

Hi all,

I'm using JTextArea in a JScrollPane to dump many lines of text from the program... By default, the view doesn't move when new lines of text are added.

Conversely, java.awt.TextArea does move to the bottom.

Is there a quick and easy way to change this behavior in Swing and make the view go to the bottom?


Thanks.

P.S. problem solved: JTextArea.setCaretPosition(int). Thanks to banana.
 

02:43 pm - ex_juan_gan - multiple inheritance

Bravely implementing multiple inheritance in Java...
http://www.livejournal.com/users/ivan_ghandhi/220998.html
Powered by LiveJournal.com