diff --git a/src/pattypan/Launcher.java b/src/pattypan/Launcher.java index fddf398..1e583b2 100644 --- a/src/pattypan/Launcher.java +++ b/src/pattypan/Launcher.java @@ -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); } }