This repository was archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUI.java
More file actions
834 lines (748 loc) · 45.7 KB
/
GUI.java
File metadata and controls
834 lines (748 loc) · 45.7 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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
package game_project;
import java.awt.*;
import java.awt.event.KeyEvent;
import javax.swing.*;
public class GUI extends javax.swing.JFrame {
private demo2048_2 game;
HighscoreManager hm = new HighscoreManager();// highscore
//private Push_Stack pu = new Push_Stack();
private JButton [][] array = new JButton[5][5];
String name = "";
public GUI() {
initComponents();
game = new demo2048_2();
game.addnewcell();
game.addnewcell();
Best.setText("" + hm.getHighScore());
assignBTtoArray();
setDefaultText();
name = JOptionPane.showInputDialog(this, "What's your name?");
player.setText(name);
view(game);
}
public void setDefaultText() {
for(int i = 0; i < 5; i++)
for (int j = 0; j < 5; j++) {
array[i][j].setText(null);
}
}
public void assignBTtoArray() {
array[0][0] = arr1;
array[0][1] = arr2;
array[0][2] = arr3;
array[0][3] = arr4;
array[0][4] = arr5;
array[1][0] = arr6;
array[1][1] = arr7;
array[1][2] = arr8;
array[1][3] = arr9;
array[1][4] = arr10;
array[2][0] = arr11;
array[2][1] = arr12;
array[2][2] = arr13;
array[2][3] = arr14;
array[2][4] = arr15;
array[3][0] = arr16;
array[3][1] = arr17;
array[3][2] = arr18;
array[3][3] = arr19;
array[3][4] = arr20;
array[4][0] = arr21;
array[4][1] = arr22;
array[4][2] = arr23;
array[4][3] = arr24;
array[4][4] = arr25;
}
public void view(demo2048_2 Obj) {
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
if(Obj.getValue(i,j) != 0) {
switch(Obj.getValue(i, j)) {
default : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,0,51));
break;
}
case 2 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,255,255));
break;
}
case 4 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,229,204));
break;
}
case 8 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,153,51));
break;
}
case 16 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,102,102));
break;
}
case 32 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,51,51));
break;
}
case 64 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,0,0));
break;
}
case 128 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,255,102));
break;
}
case 256 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,255,51));
break;
}
case 512 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,255,0));
break;
}
case 1024 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,203,57));
break;
}
case 2048 : {
array[i][j].setText("" + Obj.getValue(i,j));
array[i][j].setBackground(new Color(255,183,57));
break;
}
}
}
else
{
array[i][j].setBackground(new Color(240,240,240));
}
}
}
Score.setText("" + game.getCurrentscore());
//jButton1.setBackground();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
arr1 = new javax.swing.JButton();
arr2 = new javax.swing.JButton();
arr3 = new javax.swing.JButton();
arr4 = new javax.swing.JButton();
arr5 = new javax.swing.JButton();
arr6 = new javax.swing.JButton();
arr7 = new javax.swing.JButton();
arr8 = new javax.swing.JButton();
arr9 = new javax.swing.JButton();
arr10 = new javax.swing.JButton();
arr11 = new javax.swing.JButton();
arr12 = new javax.swing.JButton();
arr13 = new javax.swing.JButton();
arr14 = new javax.swing.JButton();
arr15 = new javax.swing.JButton();
arr16 = new javax.swing.JButton();
arr17 = new javax.swing.JButton();
arr18 = new javax.swing.JButton();
arr19 = new javax.swing.JButton();
arr20 = new javax.swing.JButton();
arr21 = new javax.swing.JButton();
arr22 = new javax.swing.JButton();
arr23 = new javax.swing.JButton();
arr24 = new javax.swing.JButton();
arr25 = new javax.swing.JButton();
jPanel5 = new javax.swing.JPanel();
Score = new javax.swing.JLabel();
jPanel6 = new javax.swing.JPanel();
Best = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
player = new javax.swing.JTextField();
label1 = new java.awt.Label();
jLabel3 = new javax.swing.JLabel();
jButton2 = new javax.swing.JButton();
jLabel1.setText("jLabel1");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setBackground(new java.awt.Color(255, 255, 255));
addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
formKeyPressed(evt);
}
});
jPanel1.setBackground(new java.awt.Color(0, 102, 102));
jPanel1.setForeground(new java.awt.Color(255, 0, 51));
jPanel1.setToolTipText("");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
arr1.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr1ActionPerformed(evt);
}
});
arr2.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr2ActionPerformed(evt);
}
});
arr3.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr3ActionPerformed(evt);
}
});
arr4.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr4ActionPerformed(evt);
}
});
arr5.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr6.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr7.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr7ActionPerformed(evt);
}
});
arr8.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr9.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr9ActionPerformed(evt);
}
});
arr10.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr11.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr12.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr13.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr14.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr15.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr16.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr16ActionPerformed(evt);
}
});
arr17.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr17ActionPerformed(evt);
}
});
arr18.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr18.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr18ActionPerformed(evt);
}
});
arr19.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr19.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr19ActionPerformed(evt);
}
});
arr20.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr20ActionPerformed(evt);
}
});
arr21.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr21.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr21ActionPerformed(evt);
}
});
arr22.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr22.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr22ActionPerformed(evt);
}
});
arr23.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr23.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr23ActionPerformed(evt);
}
});
arr24.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
arr24.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
arr24ActionPerformed(evt);
}
});
arr25.setFont(new java.awt.Font("Vinhan", 0, 23)); // NOI18N
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(22, 22, 22)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(arr1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr6, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr11, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr7, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr8, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr9, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr10, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(arr16, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(arr2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(arr12, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(arr3, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr13, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(arr17, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr18, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(arr21, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr22, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr23, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(arr14, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr15, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(arr19, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(arr24, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr25, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(384, 384, 384))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
.addComponent(arr4, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(arr5, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))))))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(10, 10, 10)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(arr1, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)
.addComponent(arr2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(arr3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(arr5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(arr6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(arr4, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(arr9, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
.addComponent(arr11, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(arr16, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(arr12, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr13, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(arr17, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr18, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(arr14, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr15, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(arr20, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr19, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(arr21, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr22, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr23, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(arr24, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(arr25, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel5.setBackground(new java.awt.Color(0, 102, 102));
jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Score", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("VNI-Chancery", 0, 30), new java.awt.Color(255, 255, 255))); // NOI18N
Score.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
Score.setForeground(new java.awt.Color(255, 255, 255));
Score.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
Score.setText("0");
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Score, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(Score)
.addGap(0, 17, Short.MAX_VALUE))
);
jPanel6.setBackground(new java.awt.Color(0, 102, 102));
jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Best", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("VNI-Chancery", 0, 30), new java.awt.Color(255, 255, 255))); // NOI18N
Best.setBackground(new java.awt.Color(0, 0, 0));
Best.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
Best.setForeground(new java.awt.Color(255, 255, 255));
Best.setHorizontalAlignment(javax.swing.JTextField.CENTER);
Best.setText("0");
Best.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
BestActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
jPanel6.setLayout(jPanel6Layout);
jPanel6Layout.setHorizontalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addContainerGap()
.addComponent(Best, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel6Layout.setVerticalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addComponent(Best, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 11, Short.MAX_VALUE))
);
jButton1.setBackground(new java.awt.Color(255, 255, 255));
jButton1.setForeground(new java.awt.Color(255, 255, 255));
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/Play-Mode-Repeat-All-Disabled-icon.png"))); // NOI18N
jButton1.setPreferredSize(new java.awt.Dimension(365, 309));
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
player.setBackground(new java.awt.Color(0, 102, 102));
player.setFont(new java.awt.Font("Tahoma", 0, 25)); // NOI18N
player.setForeground(new java.awt.Color(255, 255, 255));
player.setHorizontalAlignment(javax.swing.JTextField.CENTER);
player.setText("ha lan");
player.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
playerActionPerformed(evt);
}
});
label1.setAlignment(java.awt.Label.CENTER);
label1.setFont(new java.awt.Font("VNI-Chancery", 0, 30)); // NOI18N
label1.setForeground(new java.awt.Color(255, 255, 255));
label1.setName("Player"); // NOI18N
label1.setText("Player :");
jButton2.setForeground(new java.awt.Color(255, 255, 255));
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/play-icon.png"))); // NOI18N
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(38, 38, 38)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(20, 20, 20)
.addComponent(player)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(54, 54, 54)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel3)
.addGap(252, 252, 252))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(354, 354, 354)))))
.addContainerGap(48, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(54, 54, 54))))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(16, 16, 16)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(player)
.addComponent(label1, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void formKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_formKeyPressed
if(evt.getKeyCode() == KeyEvent.VK_UP){
game.moveup();
}else if(evt.getKeyCode() == KeyEvent.VK_DOWN){
game.movedown();
}else if(evt.getKeyCode() == KeyEvent.VK_RIGHT){
game.moveright();
}else if(evt.getKeyCode() == KeyEvent.VK_LEFT){
game.moveleft();
}
if(!game.notchaged())
game.addnewcell();
game.pushBoardToStack(game.board);
setDefaultText();
view(game);
Best.setText("" + hm.getHighScore());
if(game.gameover()) {
hm.addScore(name, game.getCurrentscore());
JOptionPane.showMessageDialog(this,"LEADER BOARD\n"+hm.getHighscoreString());
player.setText(" ");
GameOver gameover = new GameOver();
gameover.setVisible(true);
gameover.requestFocus();
gameover.toFront();
this.dispose();
}
}//GEN-LAST:event_formKeyPressed
private void BestActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BestActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_BestActionPerformed
private void arr2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr2ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr2ActionPerformed
private void arr1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr1ActionPerformed
private void playerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_playerActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_playerActionPerformed
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
GUI GUI = new GUI();
GUI.setVisible(true);
GUI.requestFocus();
GUI.toFront();
this.dispose(); // TODO add your handling code here:
}//GEN-LAST:event_jButton2ActionPerformed
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// jPanel4.setFocusable(true);
game.undo();
game.setCurrentscore((int) (game.currentscore * 0.8));
setDefaultText();
view(game);
/* if(game.stack_board.size() > 1)
{
jButton1.setBackground(new java.awt.Color(255, 102, 0));
jButton1.setEnabled(true);
jButton1.setVisible(true);
}
*/
if(game.stack_board.size() <= 1) { JOptionPane.showMessageDialog(this,"Can't undo ");
//jButton1.setEnabled(false);
//jButton1.setBackground(Color.WHITE);
}
// jPanel4.setFocusable(false);
jPanel2.setFocusable(true);
requestFocus();
// TODO add your handling code here:
}//GEN-LAST:event_jButton1ActionPerformed
private void arr3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr3ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr3ActionPerformed
private void arr4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr4ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr4ActionPerformed
private void arr16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr16ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr16ActionPerformed
private void arr17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr17ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr17ActionPerformed
private void arr18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr18ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr18ActionPerformed
private void arr19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr19ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr19ActionPerformed
private void arr20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr20ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr20ActionPerformed
private void arr21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr21ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr21ActionPerformed
private void arr22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr22ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr22ActionPerformed
private void arr23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr23ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr23ActionPerformed
private void arr24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr24ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr24ActionPerformed
private void arr7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr7ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr7ActionPerformed
private void arr9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_arr9ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_arr9ActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(GUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(GUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(GUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(GUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new GUI().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JTextField Best;
private javax.swing.JLabel Score;
private javax.swing.JButton arr1;
private javax.swing.JButton arr10;
private javax.swing.JButton arr11;
private javax.swing.JButton arr12;
private javax.swing.JButton arr13;
private javax.swing.JButton arr14;
private javax.swing.JButton arr15;
private javax.swing.JButton arr16;
private javax.swing.JButton arr17;
private javax.swing.JButton arr18;
private javax.swing.JButton arr19;
private javax.swing.JButton arr2;
private javax.swing.JButton arr20;
private javax.swing.JButton arr21;
private javax.swing.JButton arr22;
private javax.swing.JButton arr23;
private javax.swing.JButton arr24;
private javax.swing.JButton arr25;
private javax.swing.JButton arr3;
private javax.swing.JButton arr4;
private javax.swing.JButton arr5;
private javax.swing.JButton arr6;
private javax.swing.JButton arr7;
private javax.swing.JButton arr8;
private javax.swing.JButton arr9;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel3;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel5;
private javax.swing.JPanel jPanel6;
private java.awt.Label label1;
private javax.swing.JTextField player;
// End of variables declaration//GEN-END:variables
//To change body of generated methods, choose Tools | Templates.
}