From 1a8df9a1a9c3b145d5b618d763a50afa49b3f011 Mon Sep 17 00:00:00 2001 From: kfkama Date: Thu, 17 Feb 2022 20:03:24 +0100 Subject: [PATCH] Display TimerLable --- src/main/java/Minesweeper/MinesweeperGame.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/Minesweeper/MinesweeperGame.java b/src/main/java/Minesweeper/MinesweeperGame.java index f31d319..1741988 100644 --- a/src/main/java/Minesweeper/MinesweeperGame.java +++ b/src/main/java/Minesweeper/MinesweeperGame.java @@ -13,6 +13,10 @@ public class MinesweeperGame extends JPanel { this.setSize(WIDTH, HEIGTH); setLayout(null); playfield = new Playfield(this, _playfieldSize, _bombAmount); + TimerLable tl = new TimerLable(); + tl.setBounds((WIDTH / 2 - 5), HEIGTH / 2 - 240, 20, 20); + add(tl); + tl.start(); } public static void main(String[] args) {