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 6fd2f6c commit b6357e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions minesweeper/src/gr/hmu/tp4768/Views/GameOver.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class GameOver extends JFrame {
*
* @param isWon
*/
public GameOver(boolean isWon) {
public GameOver(boolean isWon,JFrame parent) {
_isWon = isWon;
setTitle("Game Over");
setSize(300, 200);
Expand Down Expand Up @@ -55,7 +55,7 @@ public GameOver(boolean isWon) {
button.setFont(new Font("Arial", Font.BOLD, 20));
button.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
SplashScreen splashScreen = new SplashScreen();
SplashScreen splashScreen = new SplashScreen(parent);
}
});
} else {
Expand All @@ -80,7 +80,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
button.setFont(new Font("Arial", Font.BOLD, 20));
button.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
SplashScreen splashScreen = new SplashScreen();
SplashScreen splashScreen = new SplashScreen(parent);
}
});

Expand Down

0 comments on commit b6357e9

Please sign in to comment.