File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/test/java/rx/schedulers Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1717
1818import javafx .application .Application ;
1919import javafx .application .Platform ;
20+ import javafx .embed .swing .JFXPanel ;
2021import javafx .stage .Stage ;
2122import org .junit .BeforeClass ;
2223import org .junit .Rule ;
@@ -64,13 +65,15 @@ public void start(Stage primaryStage) throws Exception {
6465
6566 @ BeforeClass
6667 public static void initJFX () {
67- Thread t = new Thread ("JavaFX Init Thread" ) {
68+ /* Thread t = new Thread("JavaFX Init Thread") {
6869 public void run() {
6970 Application.launch(AsNonApp.class, new String[0]);
7071 }
7172 };
7273 t.setDaemon(true);
73- t .start ();
74+ t.start();*/
75+ //use panel to initialize JavaFX thread
76+ JFXPanel panel = new JFXPanel ();
7477 }
7578
7679 @ Test
You can’t perform that action at this time.
0 commit comments