| Author |
Pause Feature
|
Kasi Viswan
Ranch Hand
Joined: Sep 27, 2008
Posts: 42
|
|
Hello,
I have a Swing GUI that uses a large input file to make series of web service calls, I would like to add 'Pause' and 'Continue' capability to my GUI.
I have this logic to start the batch job inside a Worker Thread, Can someone please guide me as to how i can bring this Pause and Continue feature into my program.
What i am looking for is how to pause the current execution on clicking a button and resume the execution on a similar event.
Please advice.
Thanks,
Kasi
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8439
|
|
One way of doing it would be to define a boolean which should be toggled on pause/continue.
After each web service call, check this boolean and process accordingly.
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
 |
|
|
subject: Pause Feature
|
|
|