[program-java] Java: Threads

  • From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
  • To: "'program-java@xxxxxxxxxxxxx'" <program-java@xxxxxxxxxxxxx>
  • Date: Tue, 15 Feb 2011 09:37:34 -0500

Hi:

Ok, I'm back to my desktop application and I'm running a long process. Last 
week I asked about the Progress Bar widget because I need to keep my user 
entertained while this process runs. I'm running the process as a new separate 
thread and can update the bar when the thread terminates but I would like to 
update the bar during the execution of the thread.

Is there a manner or method that would allow me to monitor the threads progress 
and conversely update the bar? I'm thinking of a listener but I haven't 
stumbled upon the correct items from a Google search?

Jim

James M. Corbett

Programmer / Analyst |
Canada Revenue Agency | Agence du revenue du Canada
875 Heron Rd.
Ottawa, On.
K1A0L5

James.Corbett@xxxxxxxxxxxxx
Telephone | Téléphone: (613) 941-1338
Facsimile | Télécopieur: (613) 941-2261

Government of Canada | Gouvernement du Canada

E = MC²


Other related posts:

  • » [program-java] Java: Threads - Corbett, James