made the board for 4 connect
This commit is contained in:
21
ConnectFour/src/Executor.java
Normal file
21
ConnectFour/src/Executor.java
Normal file
@@ -0,0 +1,21 @@
|
||||
import javax.swing.*;
|
||||
|
||||
public class Executor extends JFrame {
|
||||
|
||||
public Executor(){
|
||||
initUI();
|
||||
}
|
||||
|
||||
private void initUI(){
|
||||
Board board = new Board();
|
||||
add(board);
|
||||
pack();
|
||||
setDefaultCloseOperation(EXIT_ON_CLOSE);
|
||||
setLocationRelativeTo(null);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Executor executor = new Executor();
|
||||
executor.setVisible(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user