Skip to content

Commit

Permalink
Update GameFrame.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kek-Sec committed Feb 7, 2022
1 parent 993a4df commit 8b52e32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions minesweeper/src/gr/hmu/tp4768/Views/GameFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public GameFrame(GameMode gameMode) {
* At the center of the frame is the board.
*/
public void initComponents() {
//close all other JFrames
GameFrame.this.dispose();
GameToolBar gameToolBar = new GameToolBar(this);
Board board = new Board(this._gameMode);
StatusBar statusBar = new StatusBar(this._gameMode.getNumberOfMines(), this._gameMode.getNumberOfFlags());
Expand Down

0 comments on commit 8b52e32

Please sign in to comment.