Added taskbar icon to the launcher
This commit is contained in:
parent
417bd199a7
commit
cbe3f8ea85
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user