From 968c93804d6a04b6ccafdecac4122c21c468bc11 Mon Sep 17 00:00:00 2001 From: kfkama Date: Thu, 17 Feb 2022 19:05:16 +0100 Subject: [PATCH] Refactore Minesweeper, Playfield --- src/main/java/Minesweeper/MinesweeperGame.java | 5 ++--- src/main/java/Minesweeper/Playfield.java | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/Minesweeper/MinesweeperGame.java b/src/main/java/Minesweeper/MinesweeperGame.java index 9570e80..8293a18 100644 --- a/src/main/java/Minesweeper/MinesweeperGame.java +++ b/src/main/java/Minesweeper/MinesweeperGame.java @@ -1,6 +1,5 @@ package Minesweeper; -import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; @@ -18,9 +17,9 @@ public class MinesweeperGame extends JPanel { public static void main(String[] args) { 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.setLayout(null); f.setVisible(true); diff --git a/src/main/java/Minesweeper/Playfield.java b/src/main/java/Minesweeper/Playfield.java index 372b715..9e73cb8 100644 --- a/src/main/java/Minesweeper/Playfield.java +++ b/src/main/java/Minesweeper/Playfield.java @@ -1,6 +1,5 @@ package Minesweeper; -import java.awt.Color; import java.awt.Point; import javax.swing.JOptionPane;