Abstract
As you’ve no doubt seen, many graphical applications include a progress indicator of some sort to convey how quickly something is happening. I don’t know about you, but I tend to be somewhat impatient, so I find these progress bars very helpful. I hate it when a program just sits there—is it still working, has it hung, who knows? This chapter covers some different ways to measure progress and communicate it to your users.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
The script containing the “first attempt” is the ProgressBar1.py file found in the code\Chap_18 directory.
- 7.
Yes, there really are two underscores between super and setProgress.
- 8.
Interestingly enough, the JProgressBar Javadoc doesn’t explicitly identify indeterminate as an actual attribute or field. But if you use the classInfo function from Chapter 4, you can see that it does exist and your Jython scripts can access it directly, even though this practice is discouraged.
- 9.
- 10.
Note that the class name can’t be the same as the Java Swing class you are trying to use.
- 11.
A Java application would need to catch a java.lang.InterruptedException instead.
- 12.
- 13.
All of these output images were generated by ProgressMonitor4.py. You will have to edit the source script and uncomment the desired assignment statement in the start() method to duplicate these different outputs.
- 14.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Robert A. Gibson
About this chapter
Cite this chapter
Gibson, R.A. (2015). Monitoring and Indicating Progress. In: Swing for Jython. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0817-5_18
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0817-5_18
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0818-2
Online ISBN: 978-1-4842-0817-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books