Re: JTextArea append method doesn't always append



But it would catch up eventually, wouldn't it
Not necessarily. If you keep it busy in a sleep or doing some
computation, it will never be free to do service the GUI.
If you have anything substantial to do is a GUI computewise that won't
be done in a tenth of as second or so, spin it off on its own thread.
It then must communicate with the GUI components with invokeLater.
see http://mindprod.com/jgloss/swingthreads.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • Re: BackGroundWorker und Form!
    ... Genau mit SLEEP gibst Du Windows genügend ... Zeit auch Deine Ereignisse auf der GUI zu verarbeiten (z.B. wie in ... deaktiviert, dann friert die GUI! ... dass es sich um multithreading mit allen seinen Besonderheiten ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: Help Me!
    ... I thought the thread doing the calculations should ... > sleep() at intervals to allow the Gui to respond. ... the behavior of threads with different priorities id fully ... One of my apps had a thread that updated a GUI. ...
    (comp.lang.java)
  • Re: Help Me!
    ... I thought the thread doing the calculations should ... > sleep() at intervals to allow the Gui to respond. ... the behavior of threads with different priorities id fully ... One of my apps had a thread that updated a GUI. ...
    (comp.lang.java.gui)
  • Re: Win32::GUI and Scrolling Text
    ... else sleep again and repeat. ... It then loops back and starts reading where it left off (if there are ... I don't need this "event handler loop" stuff getting in my way. ... Can I just do a fork and say "Here Mr. TK GUI, ...
    (comp.lang.perl.misc)
  • Re: PATCH/FIX for drivers/cdrom/cdrom.c
    ... race condition, ... man 3 sleep ... man 2 flock ... or in the GUI world I'm firmly assured that the sun shines out of the ...
    (Linux-Kernel)