public final class FXUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertJavaFxThread() |
static void |
keepJavaFxAlive()
If you run into any situation where all of your scenes end, the thread managing all of this will just peter out.
|
static void |
runAndWait(Runnable run)
Invokes a Runnable in JFX Thread and waits while it's finished.
|
static void |
runFX(Runnable run) |
static void |
runLater(Runnable run) |
public static void assertJavaFxThread()
public static void keepJavaFxAlive()
public static void runAndWait(Runnable run) throws InterruptedException, ExecutionException
run
- The Runnable that has to be called on JFX thread.InterruptedException
- if the execution is interrupted.ExecutionException
- if a exception is occurred in the run method of the Runnablepublic static void runFX(Runnable run)
public static void runLater(Runnable run) throws ExecutionException
ExecutionException
Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.