package Minesweeper; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class MinesweeperGame extends JPanel { private static final long serialVersionUID = 1L; public static final int WIDTH = 600, HEIGTH = 600; public Playfield playfield; public MinesweeperGame(int _playfieldSize, int _bombAmount) { this.setSize(WIDTH, HEIGTH); setLayout(null); playfield = new Playfield(this, _playfieldSize, _bombAmount ); } public static void main(String[] args) { JFrame f = new JFrame(); MinesweeperGame ttt = new MinesweeperGame(8, 10); f.add(ttt); f.setSize(WIDTH, HEIGTH); f.setLayout(null); f.setVisible(true); } }