I\'d like to have a progress bar that updates inside an onAction block. For some reason in the following code, the progress bar doesn\'t update until it exits
onAction
You are blocking the javafx event thread you need to do the work in another thread and sync back only the setProgress call with Platform.runLater