Skip to content

Commit

Permalink
Added Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Jookie262 committed Nov 8, 2021
1 parent 2c3197c commit 71844bf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
Binary file added res/icon.ico
Binary file not shown.
Binary file added res/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public Game() {
showView(new Menu(this));
this.setVisible(true); // To view the window
this.pack(); // To size the components(button, img) optimally
this.setIconImage(Toolkit.getDefaultToolkit().getImage("res/icon.png")); // Change the icon
this.setResizable(false); // To avoid resizing the window
this.setLocationRelativeTo(null); // To set the window in the center

Expand Down

0 comments on commit 71844bf

Please sign in to comment.