-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoad.java
86 lines (72 loc) · 2.38 KB
/
Load.java
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
74
75
76
77
78
79
80
81
82
83
84
85
86
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JTextField;
import java.awt.Font;
import javax.swing.JButton;
import java.awt.Color;
public class Load {
private JFrame frame;
private JTextField txtLoadGame;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Load window = new Load();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public Load() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.getContentPane().setBackground(new Color(0, 0, 0));
frame.setBounds(100, 100, 447, 767);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
txtLoadGame = new JTextField();
txtLoadGame.setText("LOAD GAME");
txtLoadGame.setFont(new Font("Tempus Sans ITC", Font.BOLD, 20));
txtLoadGame.setColumns(10);
txtLoadGame.setBounds(142, 59, 139, 50);
frame.getContentPane().add(txtLoadGame);
JButton button = new JButton("CANCEL");
button.setFont(new Font("Snap ITC", Font.PLAIN, 16));
button.setBackground(Color.RED);
button.setBounds(129, 593, 175, 50);
frame.getContentPane().add(button);
JButton btnLoadFour = new JButton("LOAD FOUR");
btnLoadFour.setFont(new Font("Snap ITC", Font.PLAIN, 16));
btnLoadFour.setBackground(Color.RED);
btnLoadFour.setBounds(129, 491, 175, 50);
frame.getContentPane().add(btnLoadFour);
JButton btnLoadThree = new JButton("LOAD THREE");
btnLoadThree.setFont(new Font("Snap ITC", Font.PLAIN, 16));
btnLoadThree.setBackground(Color.RED);
btnLoadThree.setBounds(129, 401, 175, 50);
frame.getContentPane().add(btnLoadThree);
JButton btnLoadTwo = new JButton("LOAD TWO");
btnLoadTwo.setFont(new Font("Snap ITC", Font.PLAIN, 16));
btnLoadTwo.setBackground(Color.RED);
btnLoadTwo.setBounds(129, 309, 175, 50);
frame.getContentPane().add(btnLoadTwo);
JButton btnLoadOne = new JButton("LOAD ONE");
btnLoadOne.setFont(new Font("Snap ITC", Font.PLAIN, 16));
btnLoadOne.setBackground(Color.RED);
btnLoadOne.setBounds(129, 220, 175, 50);
frame.getContentPane().add(btnLoadOne);
}
}