daniela2712
Programmer
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
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