-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminQuestionview.java
More file actions
1569 lines (1310 loc) · 74.5 KB
/
AdminQuestionview.java
File metadata and controls
1569 lines (1310 loc) · 74.5 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
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import java.awt.Color;
import java.awt.Font;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import keeptoo.KGradientPanel;
import net.proteanit.sql.DbUtils;
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
*/
/**
*
* @author DELL
*/
public class AdminQuestionview extends JFrame implements Runnable {
String username,sch;
int useriden;
int rowindex;
int Qid;
int userkey;
ImageIcon image = new ImageIcon("C:/Users/DELL/Desktop/next.png");
//QUESTION
Connection in;
String sql = "Select * from questions";
PreparedStatement st;
ResultSet rs;
//ANSWER
Connection opn;
String req = "SELECT * FROM answers WHERE questionid='"+ Qid + "'";
PreparedStatement pre;
ResultSet cle;
/**
* Creates new form AdminQuestionview
*/
public AdminQuestionview() {
try {
in = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
st = in.prepareStatement(sql, ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
rs = st.executeQuery();
initComponents();
new Thread(this).start();
} catch (SQLException ex) {
Logger.getLogger(Questionview.class.getName()).log(Level.SEVERE, null, ex);
}
}
public void vef(){ v.setVisible(true);}
public void getvotesa(){
try {
Connection neu = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
String rd = "SELECT * FROM `nextgenlink`.`answers` WHERE (`questionid` = '" + Qid + "')";
PreparedStatement stet= neu.prepareStatement(rd,ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet rus = stet.executeQuery();
rus.next();
int vox = rus.getInt("vote");
vovv.setText("Votes: "+ vox);
} catch (SQLException ex) {
Logger.getLogger(Questionview.class.getName()).log(Level.SEVERE, null, ex);
}
}
public void getvotesq(){
try {
Connection neu = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
String rd = "SELECT * FROM `nextgenlink`.`questions` WHERE (`idQuestions` = '" + Qid + "')";
PreparedStatement stet= neu.prepareStatement(rd,ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet rus = stet.executeQuery();
rus.next();
int vox = rus.getInt("vote");
Voten.setText("Votes: "+ vox);
} catch (SQLException ex) {
Logger.getLogger(Questionview.class.getName()).log(Level.SEVERE, null, ex);
}
}
public void cherche(String ch){
sch = ch;
if(!(sch.isEmpty())){
try { //CHECK QUESTIONS
Connection search;
String open = "select * from questions where (description like '%" + sch + "%') or (title like '%" + sch + "%') ";
PreparedStatement prst;
ResultSet resultat;
search = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
prst = search.prepareStatement(open, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
resultat = prst.executeQuery();
if(resultat.next()){
int x = resultat.getRow();
String a = resultat.getString("title");
String b = "<html><br/><p><i>" + resultat.getString("description") + "</i></p></html>";
String c = resultat.getString("tags");
String d = resultat.getString("code");
rowindex = x;
boss.setText(a);
desct.setText(b);
tagy.setText(c);
codey.setText(d);
}
else{
JOptionPane.showMessageDialog(null,"No results found!");
}
search.close();
/* CHECK ANSWERS
String op = "select * from answers where description like '%" + sch + "%'";
search = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
prst = search.prepareStatement(op, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
resultat = prst.executeQuery();*/
} catch (SQLException ex) {
Logger.getLogger(UserHome.class.getName()).log(Level.SEVERE, null, ex);
}
} else{
JOptionPane.showMessageDialog(null,"Search bar is Empty");
}
}
public void setOffline(int x) throws SQLException{
Connection cn = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
String sqml = "UPDATE `nextgenlink`.`userlog` SET `Status` = 'offline' WHERE (`iduserlog` = '" + x + "')";
PreparedStatement pst = cn.prepareStatement(sqml);
pst.executeUpdate();
}
public void getdets(int key){
try {
Connection out = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
String in = "SELECT * FROM userlog WHERE iduserlog='"+ key + "'";
PreparedStatement stat= out.prepareStatement(in, ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet result = stat.executeQuery();
result.next();
String name = result.getString("Username");
dude.setText(name);
} catch (SQLException ex) {
Logger.getLogger(Questionview.class.getName()).log(Level.SEVERE, null, ex);
}
}
public void getqdets(int key){
try {
Connection out = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
String in = "SELECT * FROM userlog WHERE iduserlog='"+ key + "'";
PreparedStatement stat= out.prepareStatement(in, ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet result = stat.executeQuery();
result.next();
String name = result.getString("Username");
upblish.setText(name);
} catch (SQLException ex) {
Logger.getLogger(Questionview.class.getName()).log(Level.SEVERE, null, ex);
}
}
public void getUser(String x,int y){
username = x;
useriden = y;
}
public void getrow(int x){
rowindex = x;
}
public void answerinfo() throws SQLException{
try {
int count;
Connection connec = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
String t = "SELECT COUNT(*) AS rowcount FROM answers WHERE questionid='" + Qid + "'";
PreparedStatement ps = connec.prepareStatement(t, ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet rst = ps.executeQuery();
rst.next();
count = rst.getInt("rowcount");
ansnum.setText("Answers availables: " + count);
connec.close();
} catch (SQLException ex) {
Logger.getLogger(AdminQuestionview.class.getName()).log(Level.SEVERE, null, ex);
}
//GETS ANSWERS TO Q AND PUBLISHER INFO
try {
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/nextgenlink","root","System");
String trial = "SELECT * FROM answers WHERE questionid='"+ Qid + "'";
PreparedStatement ps= con.prepareStatement(trial,ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet rst = ps.executeQuery();
rst.next();
String dec= rst.getString("description");
String cd = rst.getString("code");
userkey = rst.getInt("userid");
getdets(userkey);
answ.setText( dec + "<br/> <br/>" + cd);
//opn.close();
} catch (SQLException ex) {
Logger.getLogger(Questionview.class.getName()).log(Level.SEVERE, null, ex);
}
getvotesa();
}
public void openQuestion(){
int i=1;
try{
if(rowindex == 1){
rs.next();
Qid = rs.getInt("idQuestions");
String a = rs.getString("title");
String b = "<html><br/><p><i>" + rs.getString("description") + "</i></p></html>";
String c = rs.getString("tags");
String d = rs.getString("code");
int us = rs.getInt("iduserlog");
getqdets(us);
boss.setText(a);
desct.setText(b);
tagy.setText(c);
codey.setText(d);
}
else { while(i<=rowindex){ rs.next(); i++;}
Qid = rs.getInt("idQuestions");
String a = rs.getString("title");
String b = "<html><br/><p><i>" + rs.getString("description") + "</i></p></html>";
String c = rs.getString("tags");
String d = rs.getString("code");
int us = rs.getInt("iduserlog");
getqdets(us);
boss.setText(a);
desct.setText(b);
tagy.setText(c);
codey.setText(d);
}
}
catch (SQLException ex) {
Logger.getLogger(Questionview.class.getName()).log(Level.SEVERE, null, ex);
}
getvotesq();
hold.setVisible(false);
}
public void addPlaceholderStyle(JTextField txtfield){
Font font = txtfield.getFont();
font = font.deriveFont(Font.ITALIC);
txtfield.setFont(font);
txtfield.setForeground(Color.gray);
}
public void removePlaceholderStyle(JTextField txtfield){
Font font = txtfield.getFont();
font = font.deriveFont(Font.PLAIN|Font.BOLD);
txtfield.setFont(font);
txtfield.setForeground(Color.WHITE);
}
/**
* 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() {
kGradientPanel11 = new keeptoo.KGradientPanel();
jLabel37 = new javax.swing.JLabel();
jLabel38 = new javax.swing.JLabel();
jLabel39 = new javax.swing.JLabel();
jLabel40 = new javax.swing.JLabel();
jButton14 = new javax.swing.JButton();
srchtxt = new javax.swing.JTextField();
jButton17 = new javax.swing.JButton();
kGradientPanel12 = new keeptoo.KGradientPanel();
jLabel41 = new javax.swing.JLabel();
Chatpanel = new javax.swing.JPanel();
kGradientPanel13 = new keeptoo.KGradientPanel();
jLabel8 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jPanel23 = new javax.swing.JPanel();
Userlab = new javax.swing.JLabel();
Userlab2 = new javax.swing.JLabel();
kGradientPanel14 = new keeptoo.KGradientPanel();
jLabel42 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jPanel32 = new javax.swing.JPanel();
Userlab1 = new javax.swing.JLabel();
Userlab4 = new javax.swing.JLabel();
kGradientPanel15 = new keeptoo.KGradientPanel();
jTabbedPane7 = new javax.swing.JTabbedPane();
jPanel31 = new javax.swing.JPanel();
jRadioButton16 = new javax.swing.JRadioButton();
jRadioButton17 = new javax.swing.JRadioButton();
jRadioButton18 = new javax.swing.JRadioButton();
jPanel14 = new javax.swing.JPanel();
jPanel15 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jPanel16 = new javax.swing.JPanel();
jButton4 = new javax.swing.JButton();
jLabel7 = new javax.swing.JLabel();
jScrollPane2 = new javax.swing.JScrollPane();
pane = new javax.swing.JPanel();
boss = new javax.swing.JLabel();
desct = new javax.swing.JLabel();
tagy = new javax.swing.JLabel();
codey = new javax.swing.JLabel();
jScrollPane4 = new javax.swing.JScrollPane();
answ = new javax.swing.JEditorPane();
jScrollPane6 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jLabel13 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
v = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
dude = new javax.swing.JLabel();
hold = new javax.swing.JPanel();
jScrollPane10 = new javax.swing.JScrollPane();
Com = new javax.swing.JTable();
jLabel11 = new javax.swing.JLabel();
Voten = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
ansnum = new javax.swing.JLabel();
upblish = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jButton15 = new javax.swing.JButton();
jButton16 = new javax.swing.JButton();
jScrollPane5 = new javax.swing.JScrollPane();
comty = new javax.swing.JTextPane();
jButton8 = new javax.swing.JButton();
downvote = new javax.swing.JButton();
upvote = new javax.swing.JButton();
jButton12 = new javax.swing.JButton();
jButton13 = new javax.swing.JButton();
vovv = new javax.swing.JLabel();
NextQ = new javax.swing.JButton();
Nom = new javax.swing.JLabel();
Nom1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
kGradientPanel11.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));
kGradientPanel11.setEndColor(new java.awt.Color(0, 204, 204));
kGradientPanel11.setFont(new java.awt.Font("Segoe UI Black", 0, 11)); // NOI18N
kGradientPanel11.setGradientFocus(600);
kGradientPanel11.setStartColor(new java.awt.Color(153, 0, 153));
jLabel37.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
jLabel37.setForeground(new java.awt.Color(255, 255, 255));
jLabel37.setText("<html><u>HOME</u></html>");
jLabel37.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel37MouseClicked(evt);
}
});
kGradientPanel11.add(jLabel37);
jLabel37.setBounds(10, 10, 50, 16);
jLabel38.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
jLabel38.setForeground(new java.awt.Color(255, 255, 255));
jLabel38.setText("<html><u>PRODUCTS</u></html>");
kGradientPanel11.add(jLabel38);
jLabel38.setBounds(60, 10, 63, 16);
jLabel39.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
jLabel39.setForeground(new java.awt.Color(255, 255, 255));
jLabel39.setText("<html><u>CONTACT</u></html>");
kGradientPanel11.add(jLabel39);
jLabel39.setBounds(140, 10, 70, 16);
jLabel40.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
jLabel40.setForeground(new java.awt.Color(255, 255, 255));
jLabel40.setText("<html><u>ABOUT</u></html>");
kGradientPanel11.add(jLabel40);
jLabel40.setBounds(220, 10, 50, 16);
jButton14.setText("Sign out");
jButton14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton14ActionPerformed(evt);
}
});
kGradientPanel11.add(jButton14);
jButton14.setBounds(1220, 10, 73, 23);
srchtxt.setBackground(new java.awt.Color(93, 78, 172));
srchtxt.setFont(new java.awt.Font("Segoe UI Semibold", 2, 11)); // NOI18N
srchtxt.setForeground(new java.awt.Color(204, 204, 204));
srchtxt.setText("Search");
srchtxt.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(93, 78, 172), 7, true));
srchtxt.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent evt) {
srchtxtFocusGained(evt);
}
public void focusLost(java.awt.event.FocusEvent evt) {
srchtxtFocusLost(evt);
}
});
kGradientPanel11.add(srchtxt);
srchtxt.setBounds(300, 10, 700, 29);
jButton17.setText("Search");
jButton17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton17ActionPerformed(evt);
}
});
kGradientPanel11.add(jButton17);
jButton17.setBounds(1020, 10, 90, 23);
kGradientPanel12.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
kGradientPanel12.setEndColor(new java.awt.Color(51, 153, 255));
kGradientPanel12.setStartColor(new java.awt.Color(153, 0, 204));
jLabel41.setFont(new java.awt.Font("Segoe UI Semibold", 1, 18)); // NOI18N
jLabel41.setForeground(new java.awt.Color(255, 255, 255));
jLabel41.setText("Questions");
jLabel41.setVerticalAlignment(javax.swing.SwingConstants.TOP);
kGradientPanel12.add(jLabel41);
jLabel41.setBounds(20, 10, 90, 30);
kGradientPanel11.add(kGradientPanel12);
kGradientPanel12.setBounds(0, 0, 0, 0);
Chatpanel.setBackground(new java.awt.Color(255, 255, 255));
Chatpanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Chat", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI Semibold", 0, 12))); // NOI18N
Chatpanel.setFont(new java.awt.Font("Segoe UI Semibold", 0, 11)); // NOI18N
kGradientPanel13.setBorder(javax.swing.BorderFactory.createEtchedBorder());
kGradientPanel13.setEndColor(new java.awt.Color(0, 204, 204));
kGradientPanel13.setStartColor(new java.awt.Color(0, 204, 255));
jLabel8.setFont(new java.awt.Font("Segoe UI Semibold", 1, 11)); // NOI18N
jLabel8.setText("Online users");
kGradientPanel13.add(jLabel8);
jLabel8.setBounds(30, 0, 70, 15);
jScrollPane1.setBackground(new java.awt.Color(255, 255, 255));
jPanel23.setBackground(new java.awt.Color(255, 255, 255));
Userlab.setText("img");
Userlab2.setText("img");
javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
jPanel23.setLayout(jPanel23Layout);
jPanel23Layout.setHorizontalGroup(
jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel23Layout.createSequentialGroup()
.addGap(122, 122, 122)
.addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Userlab, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Userlab2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(251, Short.MAX_VALUE))
);
jPanel23Layout.setVerticalGroup(
jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel23Layout.createSequentialGroup()
.addGap(106, 106, 106)
.addComponent(Userlab, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(28, 28, 28)
.addComponent(Userlab2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(163, Short.MAX_VALUE))
);
jScrollPane1.setViewportView(jPanel23);
kGradientPanel13.add(jScrollPane1);
jScrollPane1.setBounds(10, 20, 130, 150);
kGradientPanel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());
kGradientPanel14.setEndColor(new java.awt.Color(0, 204, 204));
kGradientPanel14.setStartColor(new java.awt.Color(0, 153, 153));
jLabel42.setFont(new java.awt.Font("Segoe UI Semibold", 1, 11)); // NOI18N
jLabel42.setText("Online users");
kGradientPanel14.add(jLabel42);
jLabel42.setBounds(30, 0, 70, 15);
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jPanel32.setBackground(new java.awt.Color(255, 255, 255));
Userlab1.setText("img");
Userlab4.setText("img");
javax.swing.GroupLayout jPanel32Layout = new javax.swing.GroupLayout(jPanel32);
jPanel32.setLayout(jPanel32Layout);
jPanel32Layout.setHorizontalGroup(
jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel32Layout.createSequentialGroup()
.addGap(122, 122, 122)
.addGroup(jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Userlab1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Userlab4, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(251, Short.MAX_VALUE))
);
jPanel32Layout.setVerticalGroup(
jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel32Layout.createSequentialGroup()
.addGap(106, 106, 106)
.addComponent(Userlab1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(28, 28, 28)
.addComponent(Userlab4, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(163, Short.MAX_VALUE))
);
jScrollPane3.setViewportView(jPanel32);
kGradientPanel14.add(jScrollPane3);
jScrollPane3.setBounds(10, 20, 130, 250);
javax.swing.GroupLayout ChatpanelLayout = new javax.swing.GroupLayout(Chatpanel);
Chatpanel.setLayout(ChatpanelLayout);
ChatpanelLayout.setHorizontalGroup(
ChatpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(ChatpanelLayout.createSequentialGroup()
.addContainerGap()
.addGroup(ChatpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(kGradientPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(kGradientPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(18, Short.MAX_VALUE))
);
ChatpanelLayout.setVerticalGroup(
ChatpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(ChatpanelLayout.createSequentialGroup()
.addContainerGap()
.addComponent(kGradientPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(kGradientPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, 285, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(148, Short.MAX_VALUE))
);
kGradientPanel11.add(Chatpanel);
Chatpanel.setBounds(1080, 80, 186, 671);
kGradientPanel15.setBorder(javax.swing.BorderFactory.createEtchedBorder());
kGradientPanel15.setEndColor(new java.awt.Color(255, 255, 255));
kGradientPanel15.setGradientFocus(340);
kGradientPanel15.setStartColor(new java.awt.Color(255, 255, 255));
jTabbedPane7.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTabbedPane7.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jTabbedPane7.setFont(new java.awt.Font("Segoe UI Semibold", 0, 11)); // NOI18N
jPanel31.setBackground(new java.awt.Color(255, 255, 255));
jRadioButton16.setText("most recent questions");
jRadioButton16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jRadioButton16ActionPerformed(evt);
}
});
jRadioButton17.setText("frequently asked questions");
jRadioButton18.setText("answered questions");
javax.swing.GroupLayout jPanel31Layout = new javax.swing.GroupLayout(jPanel31);
jPanel31.setLayout(jPanel31Layout);
jPanel31Layout.setHorizontalGroup(
jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel31Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton18)
.addComponent(jRadioButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jRadioButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel31Layout.setVerticalGroup(
jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel31Layout.createSequentialGroup()
.addGap(13, 13, 13)
.addComponent(jRadioButton16)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton17)
.addGap(3, 3, 3)
.addComponent(jRadioButton18)
.addContainerGap(70, Short.MAX_VALUE))
);
jTabbedPane7.addTab("Questions", jPanel31);
javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
jPanel14.setLayout(jPanel14Layout);
jPanel14Layout.setHorizontalGroup(
jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 165, Short.MAX_VALUE)
);
jPanel14Layout.setVerticalGroup(
jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 155, Short.MAX_VALUE)
);
jTabbedPane7.addTab("Tags", jPanel14);
javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
jPanel15.setLayout(jPanel15Layout);
jPanel15Layout.setHorizontalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 165, Short.MAX_VALUE)
);
jPanel15Layout.setVerticalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 155, Short.MAX_VALUE)
);
jTabbedPane7.addTab("Users", jPanel15);
kGradientPanel15.add(jTabbedPane7);
jTabbedPane7.setBounds(10, 10, 174, 188);
jLabel6.setFont(new java.awt.Font("Segoe UI Semibold", 0, 14)); // NOI18N
jLabel6.setText("Teams");
kGradientPanel15.add(jLabel6);
jLabel6.setBounds(70, 230, 57, 20);
jPanel16.setBackground(new java.awt.Color(255, 255, 255));
jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jButton4.setFont(new java.awt.Font("Segoe UI Semibold", 0, 12)); // NOI18N
jButton4.setText("Join");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jLabel7.setBackground(new java.awt.Color(255, 255, 255));
jLabel7.setFont(new java.awt.Font("Segoe UI Semibold", 1, 12)); // NOI18N
jLabel7.setText("<html>Lorem Ipsum is simply dummy text of the printing and typesetting industry. <br/>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s<br/></html>");
javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
jPanel16.setLayout(jPanel16Layout);
jPanel16Layout.setHorizontalGroup(
jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
.addGap(0, 97, Short.MAX_VALUE)
.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel16Layout.createSequentialGroup()
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
.addContainerGap())
);
jPanel16Layout.setVerticalGroup(
jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton4))
);
kGradientPanel15.add(jPanel16);
jPanel16.setBounds(10, 270, 174, 178);
pane.setBackground(new java.awt.Color(255, 255, 255));
boss.setFont(new java.awt.Font("Segoe UI Semibold", 3, 24)); // NOI18N
boss.setText("title here");
boss.setVerticalAlignment(javax.swing.SwingConstants.TOP);
boss.setBorder(javax.swing.BorderFactory.createEtchedBorder());
desct.setFont(new java.awt.Font("Segoe UI Semibold", 0, 12)); // NOI18N
desct.setText("Little descritption");
desct.setVerticalAlignment(javax.swing.SwingConstants.TOP);
desct.setBorder(javax.swing.BorderFactory.createEtchedBorder());
tagy.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
tagy.setText("#TAG HERE");
codey.setFont(new java.awt.Font("Segoe UI Semibold", 0, 11)); // NOI18N
codey.setText("CODE BLOCK");
codey.setVerticalAlignment(javax.swing.SwingConstants.TOP);
codey.setBorder(javax.swing.BorderFactory.createEtchedBorder());
answ.setEditable(false);
answ.setContentType("text/html"); // NOI18N
answ.setFont(new java.awt.Font("Segoe UI Semibold", 0, 12)); // NOI18N
answ.setToolTipText("");
jScrollPane4.setViewportView(answ);
jTable1.setFont(new java.awt.Font("Open Sans", 0, 11)); // NOI18N
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Author", "Comment"
}
) {
Class[] types = new Class [] {
java.lang.String.class, java.lang.Object.class
};
boolean[] canEdit = new boolean [] {
false, false
};
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jTable1.setShowVerticalLines(false);
jScrollPane6.setViewportView(jTable1);
jLabel13.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
jLabel13.setForeground(new java.awt.Color(102, 204, 255));
jLabel13.setText("<html><i><u>Show Comments</u></i></html>");
jLabel14.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
jLabel14.setText("<html><u>Drop Comment</u></html>");
jLabel14.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel14MouseClicked(evt);
}
});
jLabel15.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel15.setText("Answer Published by:");
dude.setForeground(new java.awt.Color(255, 51, 51));
Com.setFont(new java.awt.Font("Open Sans", 0, 11)); // NOI18N
Com.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Author", "Comment"
}
) {
Class[] types = new Class [] {
java.lang.String.class, java.lang.Object.class
};
boolean[] canEdit = new boolean [] {
false, false
};
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
Com.setShowVerticalLines(false);
jScrollPane10.setViewportView(Com);
jLabel11.setFont(new java.awt.Font("Segoe UI Semibold", 3, 12)); // NOI18N
jLabel11.setText("COMMENT SECTION");
javax.swing.GroupLayout holdLayout = new javax.swing.GroupLayout(hold);
hold.setLayout(holdLayout);
holdLayout.setHorizontalGroup(
holdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, holdLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(86, 86, 86))
.addGroup(holdLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
holdLayout.setVerticalGroup(
holdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(holdLayout.createSequentialGroup()
.addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
Voten.setText("Votes");
jLabel17.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
jLabel17.setForeground(new java.awt.Color(102, 204, 255));
jLabel17.setText("<html><i><u>Show Comments</u></i></html>");
jLabel17.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel17MouseClicked(evt);
}
});
ansnum.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
upblish.setFont(new java.awt.Font("Segoe UI Semibold", 1, 14)); // NOI18N
upblish.setForeground(new java.awt.Color(255, 51, 51));
upblish.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
upblish.setVerticalAlignment(javax.swing.SwingConstants.TOP);
jLabel10.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel10.setText("Question published by:");
jButton1.setText("Verify Answer");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton15.setText("Open Q");
jButton15.setBorder(null);
jButton15.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton15ActionPerformed(evt);
}
});
jButton16.setText("Close Q");
jButton16.setBorder(null);
jButton16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton16ActionPerformed(evt);
}
});
comty.setContentType("text/html"); // NOI18N
comty.setEnabled(false);
comty.setInheritsPopupMenu(true);
comty.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
comtyKeyPressed(evt);
}
});
jScrollPane5.setViewportView(comty);
jButton8.setBackground(new java.awt.Color(153, 204, 255));
jButton8.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
jButton8.setText("Next Answer");
jButton8.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.lightGray, java.awt.Color.lightGray, java.awt.Color.white, java.awt.Color.white));
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
});
downvote.setFont(new java.awt.Font("Comic Sans MS", 3, 11)); // NOI18N
downvote.setText("DOWNVOTE");
downvote.setBorder(null);
downvote.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
downvoteActionPerformed(evt);
}
});
upvote.setFont(new java.awt.Font("Comic Sans MS", 3, 12)); // NOI18N
upvote.setText("UPVOTE");
upvote.setBorder(null);
upvote.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
upvoteActionPerformed(evt);
}
});
jButton12.setFont(new java.awt.Font("Comic Sans MS", 3, 11)); // NOI18N
jButton12.setText("UPVOTE");
jButton12.setBorder(null);
jButton12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton12ActionPerformed(evt);
}
});
jButton13.setFont(new java.awt.Font("Comic Sans MS", 3, 11)); // NOI18N
jButton13.setText("DOWNVOTE");
jButton13.setBorder(null);
jButton13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton13ActionPerformed(evt);
}
});
vovv.setText("Votes");
NextQ.setBackground(new java.awt.Color(153, 204, 255));
NextQ.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
NextQ.setText("Next Question");
NextQ.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
NextQ.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
NextQActionPerformed(evt);
}
});
javax.swing.GroupLayout paneLayout = new javax.swing.GroupLayout(pane);
pane.setLayout(paneLayout);
paneLayout.setHorizontalGroup(
paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(paneLayout.createSequentialGroup()
.addContainerGap()
.addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(paneLayout.createSequentialGroup()
.addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 465, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(codey, javax.swing.GroupLayout.PREFERRED_SIZE, 465, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(paneLayout.createSequentialGroup()
.addGap(10, 10, 10)
.addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(paneLayout.createSequentialGroup()
.addComponent(ansnum, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(94, 94, 94)
.addComponent(Voten, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(paneLayout.createSequentialGroup()
.addComponent(jLabel15)
.addGap(35, 35, 35)
.addComponent(dude, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(32, 32, 32)
.addComponent(vovv, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
.addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(paneLayout.createSequentialGroup()
.addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, paneLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(v, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(paneLayout.createSequentialGroup()
.addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(paneLayout.createSequentialGroup()
.addGap(4, 4, 4)
.addComponent(jButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(paneLayout.createSequentialGroup()