|
|
@ -8,11 +8,17 @@ public class MinesweeperGame extends JPanel { |
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
public static final int WIDTH = 600, HEIGTH = 600; |
|
|
|
public Playfield playfield; |
|
|
|
public TimerLable tl; |
|
|
|
|
|
|
|
public MinesweeperGame(int _playfieldSize, int _bombAmount) { |
|
|
|
this.setSize(WIDTH, HEIGTH); |
|
|
|
setLayout(null); |
|
|
|
playfield = new Playfield(this, _playfieldSize, _bombAmount ); |
|
|
|
playfield = new Playfield(this, _playfieldSize, _bombAmount); |
|
|
|
|
|
|
|
tl = new TimerLable(); |
|
|
|
tl.setBounds((WIDTH / 2 - 5), HEIGTH / 2 - 240, 20, 20); |
|
|
|
add(tl); |
|
|
|
tl.start(); |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|