We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 487c80a + f2e4b15 commit 5abdd55Copy full SHA for 5abdd55
1 file changed
src/test/java/rx/schedulers/JavaFxSchedulerTest.java
@@ -17,6 +17,7 @@
17
18
import javafx.application.Application;
19
import javafx.application.Platform;
20
+import javafx.embed.swing.JFXPanel;
21
import javafx.stage.Stage;
22
import org.junit.BeforeClass;
23
import org.junit.Rule;
@@ -64,13 +65,15 @@ public void start(Stage primaryStage) throws Exception {
64
65
66
@BeforeClass
67
public static void initJFX() {
- Thread t = new Thread("JavaFX Init Thread") {
68
+ /*Thread t = new Thread("JavaFX Init Thread") {
69
public void run() {
70
Application.launch(AsNonApp.class, new String[0]);
71
}
72
};
73
t.setDaemon(true);
- t.start();
74
+ t.start();*/
75
+ //use panel to initialize JavaFX thread
76
+ JFXPanel panel = new JFXPanel();
77
78
79
@Test
0 commit comments