Skip to content

Commit

Permalink
Use Platform.startup() instead of JFXPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-berlin-wmse committed Jan 31, 2022
1 parent 872feec commit 9cfc344
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pattypan/Launcher.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package pattypan;

import javafx.embed.swing.JFXPanel;
import javafx.application.Platform;

public class Launcher {
public static void main(String[] args) {
new JFXPanel();
// Initialise JavaFX.
Platform.startup(() -> {});
Main.main(args);
}
}

0 comments on commit 9cfc344

Please sign in to comment.