This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java in General and the fly likes Threads, and the UI question. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Threads, and the UI question." Watch "Threads, and the UI question." New topic

Threads, and the UI question.

Dan Patterson

Joined: Jan 27, 2005
Posts: 24
There is something I am not understanding with this, so here goes.

First I am going to post the code which is in 3 classes. Then i'll ask the question at the bottom.



then the SwingWorker.

Ok What I am trying to do is run a shell script and have the output of the script show up in realtime in the JTextArea. What I am not sure about is where my code should go that is performing that task. Here is that code.

The first 3 files are not completely my writings, I found code similar to what I am trying to do and changed it to how I wanted it. So what i need to figure out is when the run button is pushed i want this code above to run and the progress bar to tell the progress of it. Any help is much appreciated. Thanks, Sorry for the long post.
Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
I think it should go in the actionPerformed(...) method in

i hope that helps.
I agree. Here's the link:
subject: Threads, and the UI question.
jQuery in Action, 3rd edition