Skip to content

Commit 71844bf

Browse files
committed
Added Icon
1 parent 2c3197c commit 71844bf

File tree

3 files changed

+1
-0
lines changed

3 files changed

+1
-0
lines changed

res/icon.ico

97.8 KB
Binary file not shown.

res/icon.png

3.09 KB
Loading

src/Game.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public Game() {
2323
showView(new Menu(this));
2424
this.setVisible(true); // To view the window
2525
this.pack(); // To size the components(button, img) optimally
26+
this.setIconImage(Toolkit.getDefaultToolkit().getImage("res/icon.png")); // Change the icon
2627
this.setResizable(false); // To avoid resizing the window
2728
this.setLocationRelativeTo(null); // To set the window in the center
2829

0 commit comments

Comments
 (0)