diff --git a/src/main/java/GrizzlyTime.java b/src/main/java/GrizzlyTime.java index 89625af..e30a21c 100644 --- a/src/main/java/GrizzlyTime.java +++ b/src/main/java/GrizzlyTime.java @@ -118,6 +118,10 @@ public void start(Stage primaryStage) { }); } + public static void main(String[] args) { + Application.launch(args); + } + // catch uncaught exceptions private static void globalExceptionHandler(Throwable throwable) { LoggingUtils.log(Level.SEVERE, throwable); diff --git a/src/main/java/Main.java b/src/main/java/Main.java index c206ff4..3bb3dc8 100644 --- a/src/main/java/Main.java +++ b/src/main/java/Main.java @@ -1,18 +1,11 @@ -import javafx.application.Preloader; -import javafx.stage.Stage; +import javafx.application.Application; /** * This is the true main class of GrizzlyTime, it launches GrizzlyTime through some fancy black * magic to get JFX working on Java 11 */ -public class Main extends Preloader { +public class Main { public static void main(String[] args) { - launch(GrizzlyTime.class, args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - // TODO Auto-generated method stub - + GrizzlyTime.main(args); } }