Skip to content
Advertisement

JavaFX Multithreading and Progressbar

I have a problem with freeze GUI. I’m a beginner with JavaFX and don’t know what I’m doing wrong. VideoToImages is background method from which I’m getting IntegerProperties to set progressBar value.

This is my code:

JavaScript

VideoToImages.start is getting frames from video and changes them to ascii images, saves this frames as images and put them to video. This is part where images are processing, prom is set and proc updatting.

JavaScript

JavaScript

}

Advertisement

Answer

I finally got this. I sliced processing function to few smaller and separated from gui. Now i get progress from task property. Anyway thanks for help. This is test code:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement