Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jtextarea slow to display 1

Status
Not open for further replies.

murrayja

Programmer
May 6, 2000
90
US
I am using netbeans to write a database copy program.
I have dropped a jtextarea inside a jscrollpane to use as a progress log. Everything runs inside a run-button clicked event. My problem is that the log is not displayed as it is written but everything comes out when the run-button event is exited.

Do i have to set up a separate thread to run the process?
 
Yes. Get those operations out of the Swing thread.

invokeLater and invokeAndWait will be your fellows.



Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top