Re: JTextArea append method doesn't always append



Andrew Thompson wrote:

Lee Graba wrote:
Is this a bug in JTextArea, or is this some known behavior?

....Perhaps you are strangling the Swing thread
so it can't keep up.
..
...It seems to be
dropping some of the messages that are appended.

I will suggest something I thought when I first saw this
thread. "If you go to the effort of preparing an SSCCE*
that demonstrates this behaviour, you might get more
help."

An SSCCE is a specific type of code, that is self
contained, and can demonstrate a problem for others.

This might be difficult to achieve for this problem, since
you maintain it is with an existing, complex system,
but please read the SSCCE document before you
abandon the concept. It might simply require a 'main'
class for the UI with a text area, itself creating several
instances of a single Thread based update class.

Your claim that the GUI class is somehow dropping the
changes, is a hard one to swallow. An SSCCE that
demonstrates the same behaviour might convince others.

* <http://www.physci.org/codes/sscce.html>

BTW - you have searched the *bug* *database* **, right?
All the above is based on the (rash) assumption that your
code does not simply expose an existing bug.

** <http://bugs.sun.com/bugdatabase/index.jsp>


Yeah, a short example of the failure is certainly desirable. I'll see if I
can produce one.

--
=================
Lee Graba
leegraba@xxxxxxxx
=================
.



Relevant Pages

  • Re: Non-verbose, simple way of getting pixels of an image?
    ... Andrew Thompson wrote: ... imports is a snippet, duhy. ... But none of these heuristics define an SSCCE. ... If the example fails to compile because lacks the ...
    (comp.lang.java.programmer)
  • Re: JScrollPane containing a JPanel of JLabels, will not scroll.
    ... | 1) How does that help me post neatly formatted code; ... The main point of the SSCCE document is ... The on-line compiler is the 'acid test' ... Andrew Thompson ...
    (comp.lang.java.gui)
  • Re: [List handling]number of occurences
    ... Andrew Thompson wrote: ... into complex and disparate threads to which the OP did ... So ..be warned D.M. try to get more active in the replies to ... what do *SSCCE* and OP stand for? ...
    (comp.lang.java.help)
  • Re: SSCCE starts with short, not simple!
    ... Andrew Thompson wrote: ... A lot of people are now paraphrasing SSCCE* ... And that code is still useful in expressing the ... with follow-ups set to c.l.j.p. ...
    (comp.lang.java.programmer)
  • Re: Shortend text in JTree
    ... For more details on preparing an SSCCE.. ... Andrew Thompson ... http://www.LensEscapes.com/ Images that escape the mundane ...
    (comp.lang.java.gui)