diff --git a/src/de/itsblue/ConnectFour/ConnectFour.java b/src/de/itsblue/ConnectFour/ConnectFour.java index e47ff33..95dde8d 100644 --- a/src/de/itsblue/ConnectFour/ConnectFour.java +++ b/src/de/itsblue/ConnectFour/ConnectFour.java @@ -1,14 +1,9 @@ package de.itsblue.ConnectFour; -import javax.swing.*; -import java.awt.*; import java.awt.Dimension; import javax.swing.JFrame; -import java.awt.Container; -import java.awt.BorderLayout; - import de.itsblue.ConnectFour.GameBoard; public class ConnectFour extends JFrame { @@ -18,26 +13,18 @@ public class ConnectFour extends JFrame { private static final long serialVersionUID = 1L; - public int r = 6; - public int c = 7; - int[][] Gamefield = new int[c][r]; - - // start - public ConnectFour(final String name) { - super(name); - setResizable(false); - } - + @Override + public void setTitle(String name) { + super.setTitle(name); + } - - - ConnectFour() { // Constructor // initialize window this.setDefaultCloseOperation(EXIT_ON_CLOSE); + this.setTitle("Connect 4"); this.setPreferredSize(new Dimension(600, 600));