public final class SwingFxUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
configureEnablement(javafx.scene.Node pNode,
Component pComponent) |
static <T> T |
runAndWait(Callable<T> pCallable)
Runs the specified
Callable on the
JavaFX application thread and waits for completion. |
static void |
runAndWait(Runnable pRunnable)
Runs the specified
Callable on the
JavaFX application thread and waits for completion. |
static <T> T |
runSwingAndWait(Callable<T> pCallable)
Note that, to avoid freezing, this method should be used exclusively, meaning, it
shouldn't be mixed with SwingUtilities.invokeAndWait(Runnable) and
SwingUtilities.invokeLater(Runnable).
|
static void |
runSwingAndWait(Runnable pRunnable)
Note that, to avoid freezing, this method should be used exclusively, meaning, it
shouldn't be mixed with SwingUtilities.invokeAndWait(Runnable) and
SwingUtilities.invokeLater(Runnable).
|
public static void configureEnablement(javafx.scene.Node pNode, Component pComponent)
public static void runSwingAndWait(Runnable pRunnable)
public static <T> T runSwingAndWait(Callable<T> pCallable)
public static void runAndWait(Runnable pRunnable)
Callable
on the
JavaFX application thread and waits for completion.public static <T> T runAndWait(Callable<T> pCallable) throws Exception
Callable
on the
JavaFX application thread and waits for completion.Exception
runSwingAndWait(Runnable)
Copyright © 2023. All rights reserved.