removed unused variables and methods, added window title

This commit is contained in:
oliver 2020-02-12 15:30:59 +01:00
parent e8f533bb99
commit 08440f45dd

View file

@ -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));