-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameRules.java
More file actions
73 lines (42 loc) · 1.15 KB
/
Copy pathGameRules.java
File metadata and controls
73 lines (42 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import javax.swing.JFrame;
import javax.swing.JTextField;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Color;
public class GameRules extends JFrame
{
/**
*
*/
private static final long serialVersionUID = 1L;
// private JTextField rules;
// private JTextField footer;
// private JTextField header;
private JTextField ruleBox;
private GridLayout grid1;
/**
* default constructor
*/
public GameRules()
{
super("Rules for the game");
grid1 = new GridLayout(2,2);
setLayout(grid1);
/*
header = new JTextField("Rules for the Tic Tac Toe Game");
header.setEditable(false);
add(header, BorderLayout.NORTH);
rules = new JTextField("The rules for this tic tac toe game\n" +
"generally applies to any other tic tac toe game. Simply get" +
"3 'X' in horizontal or vertical line/row and you win");
rules.setEditable(false);
add(rules, BorderLayout.CENTER);
footer = new JTextField("This program was created by Joseph Bourne!"
+ "\nEnjoy :)");
footer.setBackground(Color.BLUE);
footer.setEditable(false);
add(footer, BorderLayout.SOUTH);
*/
}
}