Michael Sims
Michael D Sims wrote:What is happening is that the progress bar will not actually paint any progress until AFTER the entire method is done executing. So from the users perspective, they click on the button and the program appears to freeze until its all done with that method at which point it instantly changes the progress bar to the last value I set ...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Winston Gutkowski wrote:I would say, however, that a progress bar might not be the right thing for a regex. It's usually used for situations when you have LOTS of thing to do, and can give the user some idea of "progress". If you only have 5 or 6. I'm not sure that it's going to give your users any "yes I can see it's doing something" feelings.
Michael Sims
Rob Spoor wrote:You should really read Concurrency in Swing. In this case, the call to sleep blocks your entire GUI, including repaints.
Michael Sims
Rob Spoor wrote:You should really read Concurrency in Swing. In this case, the call to sleep blocks your entire GUI, including repaints.
Michael Sims
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:To be honest, I have no idea how JavaFX handles threading issues. A quick search resulted in this link; perhaps that's enough for you.
Michael Sims
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:I noticed that I posted the JavaFX 8 version and you found the JavaFX 2 version (note that that's just one version difference - JavaFX went from 2.x to 8 together with Java 8).
Michael Sims