We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c3197c commit 71844bfCopy full SHA for 71844bf
res/icon.ico
97.8 KB
res/icon.png
3.09 KB
src/Game.java
@@ -23,6 +23,7 @@ public Game() {
23
showView(new Menu(this));
24
this.setVisible(true); // To view the window
25
this.pack(); // To size the components(button, img) optimally
26
+ this.setIconImage(Toolkit.getDefaultToolkit().getImage("res/icon.png")); // Change the icon
27
this.setResizable(false); // To avoid resizing the window
28
this.setLocationRelativeTo(null); // To set the window in the center
29
0 commit comments