View Single Post
  #2 (permalink)  
Old 05-26-2007, 02:01 PM
FaRuK FaRuK is offline
Member
 
Join Date: May 2007
Posts: 7
Rep Power: 0
FaRuK is on a distinguished road
Default
You can use the following code segment:

Code:
JTextArea ta;
String s = ta.getText();
int pos = s.length();
ta.setCaretPosition(pos);
You can call this whever a change event occured in your text area.
Reply With Quote