title: How to add a progress bar?
body: <p>I have been trying to understand how to add a progress bar, I can create one within the GUI I am implementing and get it to appear but even after checking through <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/progress.html" rel="noreferrer">http://docs.oracle.com/javase/tutorial/uiswing/components/progress.html</a> I am still no clearer on how I can set a method as a task so that I can create a progress bar for running  a method. Please can someone try to explain this to me or post an example of a progress bar being used in the GUI with a task being set as a method. Thanks.</p>