HI
i have a chat room with a text area where any new message is appended to the textarea .
where str is a
string which the user types in the text field and displaymessage is the object of textarea.
When i use this code it works fine for sometime and starts doing the opposite i.e its starts scrolling backwards so any new message is not displayed unless the scrollbar is scroll down.
I don't know tha actual logic behind the syntax but there must some a solution by setting its parameters obviously so that every time a text is appended to the Jtextarea the focus shifts on that specific string.
Also ... can this thing be possible with a JTextPane? i.e can text be appended to the JTextPane?
PLease help me
thanks in advance
[ July 19, 2003: Message edited by: raghav mathur ]