Re: JtextArea update issue.
Swing uses one particular thread to call things like your mouseClicked() - the so called event dispatch thread (EDT). Painting is also done on this thread which explains why mouseClicked() must complete before anything "shows up". What you are seeing is the reason why code you write that will be invoked on the EDT (handlers and painting code, eg) *must* complete quickly.
If something is going to take a while (>100ms?) then it should happen on another thread. Your mouseClicked() should use another thread to do it's work, updating the gui when it's done.
Google or browse through Oracle's Tutorial where the EDT and using multiple threads is discussed and illustrated.
Re: JtextArea update issue.
Thanks, that's what I thought. I was hoping to avoid having to write another method thread, but I guess there is no way around it.
Re: JtextArea update issue.