From: Joshua Cranmer on
On 07/12/2010 11:10 PM, markspace wrote:
> Joshua Cranmer wrote:
>> Mercifully, a lot of the document modelling stuff behind text areas is
>> actually thread-safe. Unfortunately, most of Swing is not so nice to you.
>
>
> I was pretty sure that only setText() and append() are thread safe for
> JTextArea. Everything else, even getText() is not.

Most of JTextArea itself is not thread-safe, but
javax.swing.text.Document and related functionality is (for the most part).

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth