Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] TextArea, large file and setCaretPosition(0)


  • From: ribchr00@xxxxxxxxxxxxxx (ribchr00@xxxxxxxxxxxxxx)
  • Subject: [Advanced-java] TextArea, large file and setCaretPosition(0)
  • Date: Fri, 22 Feb 2002 20:07:39 +0100 (MET)

Hi,

To avoid the waiting for a large file to be loaded in a 
TextArea, when a certain number of lines is read, I send 
them to the TextArea. I would like the process running 
out in the background. The user should not notice 
anything. My problem is that the caret position always
changes to the end when text is appended. I tried some 
ideas like a loop or a thread setting the caret position 
to 0 but it did not work. Has anybody a better idea? For 
any suggestion I would be glad. Cheers,

richard