help About A jTextArea Java

T

titogeo

I made a program which contains many class files. On each i tried to
display some information about currently doing task, etc in a
jTextArea. but what happen is only after completion of all, it is
displaying. what should i do to display those messages step by step.
is there any method like flush() attached with JTextArea

tito george
 
D

Daniel Dyer

I made a program which contains many class files. On each i tried to
display some information about currently doing task, etc in a
jTextArea. but what happen is only after completion of all, it is
displaying. what should i do to display those messages step by step.
is there any method like flush() attached with JTextArea

Are your classes doing all this work on the Swing event dispatch thread?

Dan.
 
R

Roedy Green

is there any method like flush() attached with JTextArea

you must not tie up the Swing thread with busywork, or else the
JTextArea will never get a chance to repaint.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top