package prg2.connectfour;

import java.awt.Dimension;

import javax.swing.JFrame;

import prg2.connectfour.ui.PlayGround;
import prg2.connectfour.comlayer.NetworkEnv;

public class ConnectFour extends JFrame {
	
	private NetworkEnv networkEnv;
	
	public ConnectFour() {
		add(new PlayGround(10, 10));
	}
	
	
	public static void main(String[] args) {
		JFrame.setDefaultLookAndFeelDecorated(true);
	    JFrame mainFrame = new ConnectFour();
	    mainFrame.setTitle("Connect four - Have fun");
	    mainFrame.setPreferredSize(new Dimension(400, 200));
	    mainFrame.pack();
	    mainFrame.setVisible(true);
	}
}

@@ -67,22 +67,17 @@
 x.swing.
-JFrame
+*
 ;%0A%0Aimpor
@@ -198,19 +198,20 @@
 Frame %7B%0A
-%09%0A%09
+    
 private 
@@ -233,25 +233,28 @@
 orkEnv;%0A
-%09%0A%09public
+%0A    private
  Connect
@@ -262,18 +262,24 @@
 our() %7B%0A
-%09%09
+        
 add(new 
@@ -303,16 +303,19 @@
 ));%0A
-%09%7D%0A%09%0A%09%0A%09
+    %7D%0A%0A    
 publ
@@ -355,10 +355,16 @@
 ) %7B%0A
-%09%09
+        
 JFra
@@ -404,17 +404,20 @@
 (true);%0A
-%09
+    
     JFra
@@ -446,25 +446,103 @@
 nectFour();%0A
-%09
+        mainFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);%0A    
     mainFram
@@ -580,17 +580,20 @@
  fun%22);%0A
-%09
+    
     main
@@ -641,17 +641,20 @@
  200));%0A
-%09
+    
     main
@@ -667,17 +667,20 @@
 pack();%0A
-%09
+    
     main
@@ -707,9 +707,12 @@
 e);%0A
-%09
+    
 %7D%0A%7D%0A

Exit on close