Browse Source

tictactoe: added ShowGUI class for testing new gui

tictactoe
Malte Schellhardt 2 years ago
committed by Lorenz Hohmann
parent
commit
0d60a2a9f4
  1. 22
      src/main/java/de/tims/tictactoe/ShowGUI.java

22
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();
}
}
Loading…
Cancel
Save