Call JavaFX in Java program and wait for wait to exit before running more code
问题 In my java program i give some options to the user and one of thems calls a JavaFXProgram to display something. I only want to run more code in the Java program when this JavaFX that got called actually exits, it may take 5 seconds, it may take a minute. Ideally what i would like is something like we have in Android. We call startActivityForResult() and then wait for the call of onActivityResult() . How can i achieve similar behaviour in my situation? I have this code that i wrote to try to