-
Notifications
You must be signed in to change notification settings - Fork 2
/
ScoreCard.java
164 lines (136 loc) · 6.59 KB
/
ScoreCard.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/***************************
* Score card on gui side
**************************/
import javax.swing.JPanel;
import javax.swing.*;
import java.awt.*;
public class ScoreCard extends JPanel{
JLabel lblSuspects, lblWeapons, lblRooms;
JCheckBox chckbxMrsWhite, chckbxCandlestick, chckbxMustard, chckbxMrGreen, chckbxMissScarlett, chckbxProfessorPlum;
JCheckBox chckbxMrsPeacock, chckbxKnife, chckbxRevolver, chckbxRope, chckbxLeadP, chckbxWrench;
JCheckBox chckbxLibrary, chckbxKitchen, chckbxBilliardRoom, chckbxBallroom, chckbxConservatory;
JCheckBox chckbxDiningHall, chckbxLounge, chckbxHall, chckbxStudy;
public ScoreCard(){
this.setBounds(704, 222, 227, 310);
lblSuspects = new JLabel("Suspects");
lblSuspects.setForeground(new Color(255, 0, 0));
lblSuspects.setFont(new Font("Arial", Font.BOLD, 14));
lblSuspects.setBounds(29, 0, 70, 18);
this.add(lblSuspects);
lblWeapons = new JLabel("Weapons");
lblWeapons.setForeground(new Color(0, 153, 51));
lblWeapons.setFont(new Font("Arial", Font.BOLD, 14));
lblWeapons.setBounds(152, -1, 70, 21);
this.add(lblWeapons);
lblRooms = new JLabel("Rooms");
lblRooms.setForeground(new Color(0, 51, 153));
lblRooms.setFont(new Font("Arial", Font.BOLD, 14));
lblRooms.setBounds(69, 161, 58, 21);
this.add(lblRooms);
chckbxMustard = new JCheckBox("Colonel Mustard");
chckbxMustard.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxMustard.setBounds(6, 44, 121, 21);
chckbxMustard.setFocusPainted(false);
this.add(chckbxMustard);
chckbxMrsWhite = new JCheckBox("Mrs. White");
chckbxMrsWhite.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxMrsWhite.setBounds(6, 67, 93, 21);
chckbxMrsWhite.setFocusPainted(false);
this.add(chckbxMrsWhite);
chckbxMrGreen = new JCheckBox("Mr. Green");
chckbxMrGreen.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxMrGreen.setBounds(6, 90, 93, 21);
chckbxMrGreen.setFocusPainted(false);
this.add(chckbxMrGreen);
chckbxMissScarlett = new JCheckBox("Miss Scarlett");
chckbxMissScarlett.setFont(new Font("SansSerif", Font.BOLD, 11));
chckbxMissScarlett.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxMissScarlett.setFocusPainted(false);
this.add(chckbxMissScarlett);
chckbxProfessorPlum = new JCheckBox("Professor Plum");
chckbxProfessorPlum.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxProfessorPlum.setBounds(6, 113, 111, 21);
chckbxProfessorPlum.setFocusPainted(false);
this.add(chckbxProfessorPlum);
chckbxMrsPeacock = new JCheckBox("Mrs. Peacock");
chckbxMrsPeacock.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxMrsPeacock.setBounds(6, 136, 104, 21);
chckbxMrsPeacock.setFocusPainted(false);
this.add(chckbxMrsPeacock);
chckbxCandlestick = new JCheckBox("Candlestick");
chckbxCandlestick.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxCandlestick.setBounds(133, 68, 93, 21);
chckbxCandlestick.setFocusPainted(false);
this.add(chckbxCandlestick);
chckbxKnife = new JCheckBox("Knife");
chckbxKnife.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxKnife.setBounds(133, 23, 93, 21);
chckbxKnife.setFocusPainted(false);
this.add(chckbxKnife);
chckbxRevolver = new JCheckBox("Revolver");
chckbxRevolver.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxRevolver.setBounds(133, 44, 93, 21);
chckbxRevolver.setFocusPainted(false);
this.add(chckbxRevolver);
chckbxRope = new JCheckBox("Rope");
chckbxRope.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxRope.setBounds(133, 91, 93, 21);
chckbxRope.setFocusPainted(false);
this.add(chckbxRope);
chckbxLeadP = new JCheckBox("Lead Pipe");
chckbxLeadP.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxLeadP.setBounds(133, 114, 93, 21);
chckbxLeadP.setFocusPainted(false);
this.add(chckbxLeadP);
chckbxWrench = new JCheckBox("Wrench");
chckbxWrench.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxWrench.setBounds(133, 137, 93, 21);
chckbxWrench.setFocusPainted(false);
this.add(chckbxWrench);
chckbxLibrary = new JCheckBox("Library");
chckbxLibrary.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxLibrary.setBounds(6, 188, 93, 21);
chckbxLibrary.setFocusPainted(false);
this.add(chckbxLibrary);
chckbxKitchen = new JCheckBox("Kitchen");
chckbxKitchen.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxKitchen.setBounds(6, 211, 93, 21);
chckbxKitchen.setFocusPainted(false);
this.add(chckbxKitchen);
chckbxBilliardRoom = new JCheckBox("Billiard Room");
chckbxBilliardRoom.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxBilliardRoom.setBounds(6, 234, 104, 21);
chckbxBilliardRoom.setFocusPainted(false);
this.add(chckbxBilliardRoom);
chckbxBallroom = new JCheckBox("Ballroom");
chckbxBallroom.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxBallroom.setBounds(6, 257, 104, 21);
chckbxBallroom.setFocusPainted(false);
this.add(chckbxBallroom);
chckbxConservatory = new JCheckBox("Conservatory");
chckbxConservatory.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxConservatory.setBounds(6, 283, 104, 21);
chckbxConservatory.setFocusPainted(false);
this.add(chckbxConservatory);
chckbxDiningHall = new JCheckBox("Dining Hall");
chckbxDiningHall.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxDiningHall.setBounds(114, 188, 93, 21);
chckbxDiningHall.setFocusPainted(false);
this.add(chckbxDiningHall);
chckbxLounge = new JCheckBox("Lounge");
chckbxLounge.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxLounge.setBounds(114, 212, 93, 21);
chckbxLounge.setFocusPainted(false);
this.add(chckbxLounge);
chckbxHall = new JCheckBox("Hall");
chckbxHall.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxHall.setBounds(114, 235, 93, 21);
chckbxHall.setFocusPainted(false);
this.add(chckbxHall);
chckbxStudy = new JCheckBox("Study");
chckbxStudy.setFont(new Font("Arial", Font.PLAIN, 10));
chckbxStudy.setBounds(114, 258, 93, 21);
chckbxStudy.setFocusPainted(false);
this.add(chckbxStudy);
}
}