Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JScrollPane and JTextArea: Automatic scroll to last row.

Status
Not open for further replies.

daniela2712

Programmer
Jul 3, 2002
1
DE
Hi all,

I have a problem with a JTextArea in a JScrollPane. If I add text to JTextArea with JTextArea.append(); the Scrollbar doesn't move to the end of the "appended" text (I'm making an IRC Gui, and this function would be very useful for the area that displays the Chattext)

It there a possibility to set a JScrollPane so it is always at the end of the Viewport or at the end of the visible area? (I think I have to do it with JViewport, bt I'm not sure)

Thanks for your help in advance!

Greetings

Dani
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top