This content has been marked as final. Show 4 replies
Using the impl method for run and wait is not advised as it may be removed in a future JavaFX version.
However you can easily copy the source of this simple method to create your own implementation:
See the following thread for details:
Note that in making what is normally an asynchronous call synchronous, you must be careful to avoid deadlock and UI freezing performance issues.
Tnx for the response. Is there any reason why I could not simply use a java.util.concurrent.CountDownLatch instead of copying the PlatformImpl.runAndWait(Runnable) code?
The PlatformImpl.runAndWait code is a CountdownLatch.
You're absolutely right, my mistake.