]> Git Server - tankstelle.git/commitdiff
moved main method
authorRobin Cheney <cheneyr@eternal.ddnss.de>
Mon, 1 Dec 2025 16:12:56 +0000 (17:12 +0100)
committerRobin Cheney <cheneyr@eternal.ddnss.de>
Mon, 1 Dec 2025 16:12:56 +0000 (17:12 +0100)
src/main/java/de/diejungsvondertanke/tankstelle/core/Main.java
src/main/java/de/diejungsvondertanke/tankstelle/ui/JFX.java

index 75309303bf48e8b465841f20bed0ddc6cfa0fd54..360ba3bc9d94ec233f105483d6663cee597eb30e 100644 (file)
@@ -34,16 +34,6 @@ public class Main {
      */
     public static ArrayList<FuelStation> fuelStations = new ArrayList<FuelStation>(Arrays.asList(initialFuelStations));
 
-    /**
-     * Launch GUI
-     * 
-     * @param args Program arguments from additionally passed parameters. Mandatory
-     *             to have, but never used here.
-     */
-    public static void main(String[] args) {
-        JFX.launch(args);
-    }
-
     /**
      * Get an array of fuel stations which have a number of vending machines
      * that is equal to {@code number_of_vending_machines}
index e5a75f9ffaced34b4cd2144b5aa753a3fff54952..9591d97006bbf58dde79be83e4bf0f51d53e067a 100644 (file)
@@ -19,6 +19,16 @@ public class JFX extends Application {
     static Parent parent;
     static Scene scene;
 
+    /**
+     * Launch GUI
+     * 
+     * @param args Program arguments from additionally passed parameters. Mandatory
+     *             to have, but never used here.
+     */
+    public static void main(String[] args) {
+        launch(args);
+    }
+
     @Override
     public void start(Stage s) throws Exception {
         stage = s;