Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JScrollBar Problem

 
Rohan Kalbhor
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I have developed an instant messenger,in this two clients keep text chatting
my problem is that whenever the written text exceeds the limit of the
text area the scroll bar should move down automatically
Or the option to this would be ,that the scroll bar is permanantly
fixed to lowermost position.
Please do help me on this issue

Thanks in Advance
Rohan Kalbhor
 
Romeo Son
Ranch Hand
Posts: 92
Android Eclipse IDE Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What you want to do is not complicated. After you append a line of text in your text area, set its caret position at the end of the document.



Regards,

Romeo
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!