Search code examples
javafxblocking

JavaFX GUI release background task


I have a simple JavaFX window which display a message. When I call JavaFX application to display something it works, but the caller is blocked while the FX window is open. I want to display window but the background process should not be blocked. How can I do it?

Thanks for your help!


Solution

  • To do some background stuff and not freez you GUI, you have to use JavaFX Service. Everything is explain here and here