added some basic classes
This commit is contained in:
parent
b245353ac0
commit
3622d03612
3 changed files with 60 additions and 0 deletions
28
src/de/itsblue/ConnectFour/ConnectFour.java
Normal file
28
src/de/itsblue/ConnectFour/ConnectFour.java
Normal file
|
@ -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());
|
||||||
|
}
|
||||||
|
}
|
16
src/de/itsblue/ConnectFour/GameBoard.java
Normal file
16
src/de/itsblue/ConnectFour/GameBoard.java
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
package de.itsblue.ConnectFour;
|
||||||
|
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
|
||||||
|
public class GameBoard extends JPanel {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
GameBoard() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
16
src/de/itsblue/ConnectFour/Plate.java
Normal file
16
src/de/itsblue/ConnectFour/Plate.java
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
package de.itsblue.ConnectFour;
|
||||||
|
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
|
||||||
|
public class Plate extends JPanel {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
Plate() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Reference in a new issue