Added taskbar icon to the launcher

This commit is contained in:
François Autin 2021-06-25 18:42:16 +02:00
parent 417bd199a7
commit cbe3f8ea85
No known key found for this signature in database
GPG Key ID: 24025429AC559B7C
1 changed files with 3 additions and 1 deletions

View File

@ -153,13 +153,15 @@ public class Launcher extends Application {
/*******************/
// Removing window decorations
// primaryStage.initStyle(StageStyle.UNDECORATED);
primaryStage.initStyle(StageStyle.UNDECORATED);
// Setting the window as unresizeable
primaryStage.setResizable(false);
// Setting window title
primaryStage.setTitle("Boulevard Combattant");
// Assinging main scene to primaryStage
primaryStage.setScene(main);
// Adding icon to taskbar
primaryStage.getIcons().add(new Image(Launcher.class.getResourceAsStream("logo.png")));
// Showing the stage to the user
primaryStage.show();