I am developing a log parser. I want to show the user the progress in the parsing using the JProgressBar. I have never used JProgresBar till now. My problem is that, I have one function which does all the log parsing/processing, which takes around 5 minutes to complete the processing. How do I update the progress bar?