Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JScrollPane - need the scrollbar to automatically position at the bottom

843806Dec 8 2007 — edited Dec 8 2007
I have a JScrollPane which holds text received from a socket.

When so much data is recevied its obviously I want the text area to scroll down automatically so the new text is constantly in view.

Currently, the scrollbar stays at the top so you cant see what is coming through the socket until you manually move the scrollbar down.

Cna anyone help - Im new to java.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 5 2008
Added on Dec 8 2007
1 comment
76 views