Java Reference
In-Depth Information
Figure 7-8. The WorkerAndTaskExample program while a task is in progress
When the task finishes normally, we arrive at the screenshot in Figure 7-9 . Notice that the progress bar is at
100.00%. The Title, Message, Total Work, Work Done, and Progress fields all have values that reflect the fact that the
task has finished processing all 250 items. The Running value is false. The State is SUCCEEDED, and the Value field
now contains the return value from the call() method.
Figure 7-9. The WorkerAndTaskExample program after the task succeeded
 
Search WWH ::




Custom Search