|
@ -4,6 +4,7 @@ import java.awt.Graphics; |
|
|
import java.awt.Graphics2D; |
|
|
import java.awt.Graphics2D; |
|
|
import java.awt.geom.Line2D; |
|
|
import java.awt.geom.Line2D; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JButton; |
|
|
import javax.swing.JFrame; |
|
|
import javax.swing.JFrame; |
|
|
import javax.swing.JPanel; |
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
@ -12,13 +13,13 @@ public class TicTacToeGame extends JPanel { |
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L; |
|
|
private static final long serialVersionUID = 1L; |
|
|
private static int width = 600, height = 600; |
|
|
private static int width = 600, height = 600; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TicTacToeGame() { |
|
|
public TicTacToeGame() { |
|
|
this.setSize(width, height); |
|
|
this.setSize(width, height); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
public static void main(String[] args) { |
|
|
|
|
|
|
|
|
JFrame f = new JFrame(); |
|
|
JFrame f = new JFrame(); |
|
|
TicTacToeGame ttt = new TicTacToeGame(); |
|
|
TicTacToeGame ttt = new TicTacToeGame(); |
|
|
|
|
|
|
|
|