The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

auto scrolling in swing

Posted by Russell Rogers on April 28, 2000 at 1:01 AM

Hi,

In the AWT if I create a TextArea and then keep feeding information to that
TextArea, it scrolls automatically to show me to most recently appended text
in the component. However if use the swing equivalent, JTextArea this
doesn't happen even if I wrap this class in a JScrollPane. It does bring up
the scrollbar when text gets too much to fit in the window, but it doesn't
automatically scroll down to show me the latest added text.

Is there anyway I can change this?

Thanks a lot,
Russell




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us