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
|
// Removing window decorations
|
||||||
// primaryStage.initStyle(StageStyle.UNDECORATED);
|
primaryStage.initStyle(StageStyle.UNDECORATED);
|
||||||
// Setting the window as unresizeable
|
// Setting the window as unresizeable
|
||||||
primaryStage.setResizable(false);
|
primaryStage.setResizable(false);
|
||||||
// Setting window title
|
// Setting window title
|
||||||
primaryStage.setTitle("Boulevard Combattant");
|
primaryStage.setTitle("Boulevard Combattant");
|
||||||
// Assinging main scene to primaryStage
|
// Assinging main scene to primaryStage
|
||||||
primaryStage.setScene(main);
|
primaryStage.setScene(main);
|
||||||
|
// Adding icon to taskbar
|
||||||
|
primaryStage.getIcons().add(new Image(Launcher.class.getResourceAsStream("logo.png")));
|
||||||
// Showing the stage to the user
|
// Showing the stage to the user
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user