removed unused variables and methods, added window title
This commit is contained in:
parent
e8f533bb99
commit
08440f45dd
1 changed files with 5 additions and 18 deletions
|
@ -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));
|
||||
|
||||
|
|
Reference in a new issue