Not actually an example, I've done this but the code is way too complex to post here. You have to make sure you don't make your calculations in the AWT thread - just create a new thread wherever you want to do the calculation and let it do the work. You can then setValue() the JProgressBar to the current progress, within bounds of the setMin() and setMax() you did beforehand...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.