From 0d60a2a9f40ee02bd3b1469d125306d2498b1086 Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Mon, 14 Feb 2022 21:28:40 +0100 Subject: [PATCH] tictactoe: added ShowGUI class for testing new gui --- src/main/java/de/tims/tictactoe/ShowGUI.java | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/java/de/tims/tictactoe/ShowGUI.java diff --git a/src/main/java/de/tims/tictactoe/ShowGUI.java b/src/main/java/de/tims/tictactoe/ShowGUI.java new file mode 100644 index 0000000..47a7f2c --- /dev/null +++ b/src/main/java/de/tims/tictactoe/ShowGUI.java @@ -0,0 +1,22 @@ +package de.tims.tictactoe; + +import javax.swing.JFrame; + +public class ShowGUI { + + private JFrame frame; + + public ShowGUI() { + this.frame = new JFrame("TicTacToe"); + this.frame.setSize(600, 600); + + GameLogic game = new GameLogic(3); + this.frame.add(game.generateGUI()); + this.frame.setVisible(true); + } + + public static void main(String[] args) { + new ShowGUI(); + } + +}