Skip to content

Commit

Permalink
Update GameOver.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kek-Sec committed Feb 7, 2022
1 parent 51129d9 commit 80154cc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions minesweeper/src/gr/hmu/tp4768/Views/GameOver.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
}
});
} else {
//game over screen
// create panel
JPanel panel = new JPanel();
panel.setBounds(0, 0, 300, 200);
panel.setBackground(Color.BLACK);
//background light gray
panel.setBackground(Color.LIGHT_GRAY);
add(panel);
// create label
JLabel label = new JLabel("You Lost!");
JLabel label = new JLabel("Game Over");
label.setBounds(100, 50, 100, 100);
label.setForeground(Color.RED);
label.setFont(new Font("Arial", Font.BOLD, 20));
Expand All @@ -81,6 +83,11 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
SplashScreen splashScreen = new SplashScreen();
}
});

// add button to panel
panel.add(button);


}
}

Expand Down

0 comments on commit 80154cc

Please sign in to comment.