- java.lang.Object
-
- com.iamsoft.util.ui.javafx.swingfx.SwingFxUtil
-
public final class SwingFxUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
configureEnablement(javafx.scene.Node pNode, Component pComponent)
static void
runAndWait(Runnable pRunnable)
Runs the specifiedCallable
on the JavaFX application thread and waits for completion.static <T> T
runAndWait(Callable<T> pCallable)
Runs the specifiedCallable
on the JavaFX application thread and waits for completion.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).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).
-
-
-
Method Detail
-
configureEnablement
public static void configureEnablement(javafx.scene.Node pNode, Component pComponent)
-
runSwingAndWait
public 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).
-
runSwingAndWait
public 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).
-
runAndWait
public static void runAndWait(Runnable pRunnable)
Runs the specifiedCallable
on the JavaFX application thread and waits for completion.
-
runAndWait
public static <T> T runAndWait(Callable<T> pCallable) throws Exception
Runs the specifiedCallable
on the JavaFX application thread and waits for completion.- Throws:
Exception
- See Also:
runSwingAndWait(Runnable)
-
-