Re: JTextArea append method doesn't always append
- From: Nigel Wade <nmw@xxxxxxxxxxxx>
- Date: Thu, 26 Jul 2007 12:16:23 +0100
Andrew Thompson wrote:
Andrew Thompson wrote:<http://java.sun.com/javase/6/docs/api/javax/swing/SwingUtilities.html#invokeLater(java.lang.Runnable
Is this a bug in JTextArea, or is this some known behavior?
Oh, but besides all that 'rabbiting on', note that
Swing methods are not 'Thread safe'.
See
)>
However, JTextArea.append() is one of the few Swing methods which is thread
safe:
<http://java.sun.com/javase/6/docs/api/javax/swing/JTextArea.html#append(java.lang.String)>
My first thought was that the multiple threads appending to multiple JTextAreas
was the problem, and that wrapping the calls in invokeLater would be the
solution. Since the method is supposed to be thread safe this ought not to be
the case, if this is indeed the class/method which is being used. It might
still be worth trying anyway...
I agree with your other post. A SSCCE which demonstrates the problem might shed
some light on it.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@xxxxxxxxxxxx
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
.
- Follow-Ups:
- Re: JTextArea append method doesn't always append
- From: Lee Graba
- Re: JTextArea append method doesn't always append
- References:
- JTextArea append method doesn't always append
- From: Lee Graba
- Re: JTextArea append method doesn't always append
- From: Roedy Green
- Re: JTextArea append method doesn't always append
- From: Lee Graba
- JTextArea append method doesn't always append
- Prev by Date: Re: How to get the simplest Swingx app to work
- Next by Date: Modifying JTree node text before editing
- Previous by thread: Re: JTextArea append method doesn't always append
- Next by thread: Re: JTextArea append method doesn't always append
- Index(es):
Relevant Pages
|
|