Prev: Collections - Set to prevent duplicating items
Next: Simple Hack To Get $2000 To Your PayPal Account
From: Joshua Cranmer on 13 Jul 2010 17:10 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
First
|
Prev
|
Pages: 1 2 3 4 Prev: Collections - Set to prevent duplicating items Next: Simple Hack To Get $2000 To Your PayPal Account |