I need to work with multiple threads in background in a JavaFX application. I have a screen with ten buttons and I need to 'bind' each thread with the button that started the thread. If the user pressed a button that had started a thread (in the main screen, MainController.java), I need to recover it to display the information that contains to display it on the controls of Details Screen ( a second screen, DetailController.java).
What Class do you recommend for this? Service?
https://docs.oracle.com/javase/8/javafx/api/javafx/concurrent/package-summary.html
It is possible to name the threads with any of these classes?
Best regards,