public class PlatformUtil
extends java.lang.Object
Created by Tom Eugelink on 26-12-13.
Constructor and Description |
---|
PlatformUtil() |
Modifier and Type | Method and Description |
---|---|
static <V> V |
runAndWait(java.util.concurrent.Callable<V> callable)
|
static void |
runAndWait(java.lang.Runnable runnable)
|
static void |
waitForPaintPulse() |
public static void runAndWait(java.lang.Runnable runnable)
Invokes a Runnable in JFX Thread and waits while it’s finished. Like SwingUtilities.invokeAndWait does for EDT.
runnable
- The Runnable that has to be called on JFX thread.public static <V> V runAndWait(java.util.concurrent.Callable<V> callable) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Invokes a Callable in JFX Thread and waits while it’s finished. Similar to SwingUtilities.invokeAndWait.
callable
- The Runnable that has to be called on JFX thread.java.lang.InterruptedException
java.util.concurrent.ExecutionException
public static void waitForPaintPulse()