From bb5e31ff9f826afae19ca7253647ad8147cb8f36 Mon Sep 17 00:00:00 2001 From: kfkama Date: Mon, 14 Feb 2022 23:19:33 +0100 Subject: [PATCH] Add cell class --- src/main/java/TicTacToe/TicTacToeGame.java | 5 +++-- src/main/java/TicTacToe/cell.java | 13 +++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/main/java/TicTacToe/cell.java diff --git a/src/main/java/TicTacToe/TicTacToeGame.java b/src/main/java/TicTacToe/TicTacToeGame.java index f958273..db769ff 100644 --- a/src/main/java/TicTacToe/TicTacToeGame.java +++ b/src/main/java/TicTacToe/TicTacToeGame.java @@ -4,6 +4,7 @@ import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Line2D; +import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; @@ -12,13 +13,13 @@ public class TicTacToeGame extends JPanel { private static final long serialVersionUID = 1L; private static int width = 600, height = 600; - + + public TicTacToeGame() { this.setSize(width, height); } public static void main(String[] args) { - JFrame f = new JFrame(); TicTacToeGame ttt = new TicTacToeGame(); diff --git a/src/main/java/TicTacToe/cell.java b/src/main/java/TicTacToe/cell.java new file mode 100644 index 0000000..ea76245 --- /dev/null +++ b/src/main/java/TicTacToe/cell.java @@ -0,0 +1,13 @@ +package TicTacToe; +import javax.swing.JButton; + +public class cell extends JButton { + + int value = 0; + + public cell() { + + } + + +}