From: Robin Cheney Date: Fri, 21 Nov 2025 15:32:38 +0000 (+0100) Subject: Changed Icon X-Git-Url: https://git.eternal.ddnss.de/?a=commitdiff_plain;h=b06cd6a29a58fe9d61b3741f60ae3865c4f8ec6b;p=tankstelle.git Changed Icon --- diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml new file mode 100644 index 0000000..51a6f93 --- /dev/null +++ b/dependency-reduced-pom.xml @@ -0,0 +1,150 @@ + + + 4.0.0 + de.diejungsvondertanke.tankstelle + tankstelle + 1.0-SNAPSHOT + + + + maven-jar-plugin + 3.1.0 + + + + ${main.Class} + + + + + + maven-shade-plugin + 3.5.0 + + + package + + shade + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + ${main.Class} + + + + + + + + maven-compiler-plugin + 3.8.0 + + + org.ow2.asm + asm + 6.2.1 + + + + ${java.version} + + + + org.moditect + moditect-maven-plugin + 1.0.0.Beta2 + + + create-runtime-image + package + + create-runtime-image + + + + ${project.build.directory}/modules + + + ${project.groupId} + + + ${project.groupId} + + 2 + true + ${project.build.directory}/jlink-image + + + + + + maven-dependency-plugin + + + copy-dependencies + prepare-package + + copy-dependencies + + + ${project.build.directory}/modules + runtime + + + + + + maven-compiler-plugin + 3.11.0 + + ${java.version} + ${java.version} + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + ${main.Class} + --module-path + ${java.home}/lib + --add-modules=javafx.controls,javafx.fxml + + + + org.openjfx + javafx-maven-plugin + ${javafx.version} + + + default-cli + + ${main.Class} + + + + + + + + 25 + 25 + 25 + UTF-8 + win + 23.0.2 + de.diejungsvondertanke.tankstelle.ui.JFX + + diff --git a/pom.xml b/pom.xml index c6fd485..5a93173 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ - + + org.apache.maven.plugins + maven-shade-plugin + 3.5.0 + + + package + + shade + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + ${main.Class} + + + + + + --> + + + + + + org.moditect + moditect-maven-plugin + 1.0.0.Beta2 + + + create-runtime-image + package + + create-runtime-image + + + + ${project.build.directory}/modules + + + ${project.groupId} + + + ${project.groupId} + + + 2 + true + ${project.build.directory}/jlink-image + + + @@ -82,7 +143,24 @@ + + org.openjfx + javafx-maven-plugin + ${javafx.version} + + + default-cli + + ${main.Class} + + + + + + + + @@ -91,6 +169,7 @@ 25 25 23.0.2 + win de.diejungsvondertanke.tankstelle.ui.JFX @@ -99,16 +178,19 @@ org.openjfx javafx-controls ${javafx.version} + org.openjfx javafx-fxml ${javafx.version} + org.openjfx javafx-graphics ${javafx.version} + @@ -116,6 +198,7 @@ org.openjfx javafx-base ${javafx.version} + diff --git a/src/main/java/de/diejungsvondertanke/tankstelle/controllers/FuelStationUIController.java b/src/main/java/de/diejungsvondertanke/tankstelle/controllers/FuelStationUIController.java index a95b2a0..f10ee65 100644 --- a/src/main/java/de/diejungsvondertanke/tankstelle/controllers/FuelStationUIController.java +++ b/src/main/java/de/diejungsvondertanke/tankstelle/controllers/FuelStationUIController.java @@ -101,7 +101,6 @@ public class FuelStationUIController { overviewTabController.setParentController(this); // overviewTabController.refresh(); }); - } catch (Exception e) { e.printStackTrace(); // TODO: handle exception diff --git a/src/main/java/de/diejungsvondertanke/tankstelle/ui/JFX.java b/src/main/java/de/diejungsvondertanke/tankstelle/ui/JFX.java index 659572a..bc7469f 100644 --- a/src/main/java/de/diejungsvondertanke/tankstelle/ui/JFX.java +++ b/src/main/java/de/diejungsvondertanke/tankstelle/ui/JFX.java @@ -28,7 +28,7 @@ public class JFX extends Application { stage.setScene(scene); stage.setTitle("Fuel Station Management System"); - stage.getIcons().add(new Image(getClass().getResourceAsStream("/icon/gasstation_4334.png"))); + stage.getIcons().add(new Image(getClass().getResourceAsStream("/icon/AppIcon.png"))); initializeKeybinds(); stage.show(); } @@ -89,10 +89,12 @@ public class JFX extends Application { } void exit() { + quit(); System.exit(0); } void exit(int status) { + quit(); System.exit(status); } diff --git a/src/main/resources/icon/AppIcon.png b/src/main/resources/icon/AppIcon.png new file mode 100644 index 0000000..ff965e4 Binary files /dev/null and b/src/main/resources/icon/AppIcon.png differ diff --git a/src/main/resources/icon/gasstation_4334.ico b/src/main/resources/icon/gasstation_4334.ico deleted file mode 100644 index e2d0d80..0000000 Binary files a/src/main/resources/icon/gasstation_4334.ico and /dev/null differ diff --git a/src/main/resources/icon/gasstation_4334.png b/src/main/resources/icon/gasstation_4334.png deleted file mode 100644 index 484cc27..0000000 Binary files a/src/main/resources/icon/gasstation_4334.png and /dev/null differ