Skip to content

Commit

Permalink
added imageIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal committed Jan 13, 2020
1 parent c07c69c commit 7825dae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
File renamed without changes
3 changes: 3 additions & 0 deletions src/com/fossilia/fire_emblem7/graphics/FireEmblem.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public FireEmblem() {

myTimer = new Timer(10, this); // trigger every 10 ms

ImageIcon img = new ImageIcon("images/icon.jpg");
setIconImage(img.getImage());

game = new GamePanel(this);
add(game);

Expand Down
1 change: 1 addition & 0 deletions src/com/fossilia/fire_emblem7/graphics/GamePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,7 @@ public void paintComponent(Graphics g){ //actually draws everything

if(mode.equals("menu")){
menuImage = loadImage("images/Menu/Main Menu.png");

g.drawImage(menuImage,0,0,this);
g.drawString("Chapter 1", 95*3, 58*3);
g.drawString("Chapter 2", 95*3, 83*3);
Expand Down

0 comments on commit 7825dae

Please sign in to comment.