Browse Source

Refactore Minesweeper, Playfield

feature_Minesweeper_Playfield
kfkama 3 years ago
parent
commit
968c93804d
  1. 5
      src/main/java/Minesweeper/MinesweeperGame.java
  2. 1
      src/main/java/Minesweeper/Playfield.java

5
src/main/java/Minesweeper/MinesweeperGame.java

@ -1,6 +1,5 @@
package Minesweeper; package Minesweeper;
import javax.swing.JButton;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.JPanel; import javax.swing.JPanel;
@ -18,9 +17,9 @@ public class MinesweeperGame extends JPanel {
public static void main(String[] args) { public static void main(String[] args) {
JFrame f = new JFrame(); JFrame f = new JFrame();
MinesweeperGame ttt = new MinesweeperGame(8, 10);
MinesweeperGame MsG = new MinesweeperGame(8, 10);
f.add(ttt);
f.add(MsG);
f.setSize(WIDTH, HEIGTH); f.setSize(WIDTH, HEIGTH);
f.setLayout(null); f.setLayout(null);
f.setVisible(true); f.setVisible(true);

1
src/main/java/Minesweeper/Playfield.java

@ -1,6 +1,5 @@
package Minesweeper; package Minesweeper;
import java.awt.Color;
import java.awt.Point; import java.awt.Point;
import javax.swing.JOptionPane; import javax.swing.JOptionPane;

Loading…
Cancel
Save