From 3622d03612f84959eec7910c62c1a234c203ac37 Mon Sep 17 00:00:00 2001 From: dorian Date: Wed, 5 Feb 2020 15:01:40 +0100 Subject: [PATCH] added some basic classes --- src/de/itsblue/ConnectFour/ConnectFour.java | 28 +++++++++++++++++++++ src/de/itsblue/ConnectFour/GameBoard.java | 16 ++++++++++++ src/de/itsblue/ConnectFour/Plate.java | 16 ++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 src/de/itsblue/ConnectFour/ConnectFour.java create mode 100644 src/de/itsblue/ConnectFour/GameBoard.java create mode 100644 src/de/itsblue/ConnectFour/Plate.java diff --git a/src/de/itsblue/ConnectFour/ConnectFour.java b/src/de/itsblue/ConnectFour/ConnectFour.java new file mode 100644 index 0000000..0a1f57f --- /dev/null +++ b/src/de/itsblue/ConnectFour/ConnectFour.java @@ -0,0 +1,28 @@ +package de.itsblue.ConnectFour; + +import java.awt.Dimension; + +import javax.swing.JFrame; + +public class ConnectFour extends JFrame { + /** + * + */ + private static final long serialVersionUID = 1L; + + ConnectFour() { + // Constructor + + // initialize window + this.setDefaultCloseOperation(EXIT_ON_CLOSE); + this.setPreferredSize(new Dimension(600,600)); + + // finish up + this.pack(); + this.setVisible(true); + } + + public static void main(String[] args) { + System.out.println(new ConnectFour()); + } +} \ No newline at end of file diff --git a/src/de/itsblue/ConnectFour/GameBoard.java b/src/de/itsblue/ConnectFour/GameBoard.java new file mode 100644 index 0000000..4e6a354 --- /dev/null +++ b/src/de/itsblue/ConnectFour/GameBoard.java @@ -0,0 +1,16 @@ +package de.itsblue.ConnectFour; + +import javax.swing.JPanel; + +public class GameBoard extends JPanel { + + /** + * + */ + private static final long serialVersionUID = 1L; + + GameBoard() { + + } + +} \ No newline at end of file diff --git a/src/de/itsblue/ConnectFour/Plate.java b/src/de/itsblue/ConnectFour/Plate.java new file mode 100644 index 0000000..be98c86 --- /dev/null +++ b/src/de/itsblue/ConnectFour/Plate.java @@ -0,0 +1,16 @@ +package de.itsblue.ConnectFour; + +import javax.swing.JPanel; + +public class Plate extends JPanel { + + /** + * + */ + private static final long serialVersionUID = 1L; + + Plate() { + + } + +} \ No newline at end of file