-
Notifications
You must be signed in to change notification settings - Fork 0
/
ECE1.java
1133 lines (1026 loc) · 30.8 KB
/
ECE1.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
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.Dimension;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
class ECE1 extends JPanel
{
//semester1
JTextField combo1_1;
JTextField combo1_2;
JTextField combo1_3;
JTextField combo1_4;
JTextField combo1_5;
JTextField combo1_6;
JTextField combo1_7;
JTextField combo1_8;
JLabel label1;
JLabel label1_1;
JLabel label1_2;
JLabel lab1_1;
JLabel lab1_2;
JLabel lab1_3;
JLabel lab1_4;
JLabel lab1_5;
JLabel lab1_6;
JLabel lab1_7;
JLabel lab1_8;
//semester2
JTextField combo2_1;
JTextField combo2_2;
JTextField combo2_3;
JTextField combo2_4;
JTextField combo2_5;
JTextField combo2_6;
JTextField combo2_7;
JTextField combo2_8;
JLabel label2;
JLabel label2_1;
JLabel label2_2;
JLabel lab2_1;
JLabel lab2_2;
JLabel lab2_3;
JLabel lab2_4;
JLabel lab2_5;
JLabel lab2_6;
JLabel lab2_7;
JLabel lab2_8;
//sem3
JTextField combo3_1;
JTextField combo3_2;
JTextField combo3_3;
JTextField combo3_4;
JTextField combo3_5;
JTextField combo3_6;
JTextField combo3_7;
JTextField combo3_8;
JTextField combo3_9;
JTextField combo3_10;
JTextField combo3_11;
JTextField combo3_12;
JLabel label3;
JLabel label3_1;
JLabel label3_2;
JLabel lab3_1;
JLabel lab3_2;
JLabel lab3_3;
JLabel lab3_4;
JLabel lab3_15;
JLabel lab3_6;
JLabel lab3_7;
JLabel lab3_8;
JLabel lab3_9;
JLabel lab3_10;
JLabel lab3_11;
JLabel lab3_12;
//sem4
JTextField combo4_1;
JTextField combo4_2;
JTextField combo4_3;
JTextField combo4_4;
JTextField combo4_5;
JTextField combo4_6;
JTextField combo4_7;
JTextField combo4_8;
JLabel label4;
JLabel label4_1;
JLabel label4_2;
JLabel lab4_1;
JLabel lab4_2;
JLabel lab4_3;
JLabel lab4_4;
JLabel lab4_5;
JLabel lab4_6;
JLabel lab4_7;
JLabel lab4_8;
//sem5
JTextField combo5_1;
JTextField combo5_2;
JTextField combo5_3;
JTextField combo5_4;
JTextField combo5_5;
JTextField combo5_6;
JTextField combo5_7;
JTextField combo5_8;
JTextField combo5_9;
JTextField combo5_10;
JLabel label5;
JLabel label5_1;
JLabel label5_2;
JLabel lab5_1;
JLabel lab5_2;
JLabel lab5_3;
JLabel lab5_4;
JLabel lab5_5;
JLabel lab5_6;
JLabel lab5_7;
JLabel lab5_8;
JLabel lab5_9;
JLabel lab5_10;
//sem 6
JTextField combo6_1;
JTextField combo6_2;
JTextField combo6_3;
JTextField combo6_4;
JTextField combo6_5;
JTextField combo6_6;
JTextField combo6_7;
JTextField combo6_8;
JTextField combo6_9;
JTextField combo6_10;
JLabel label6;
JLabel label6_1;
JLabel label6_2;
JLabel lab6_1;
JLabel lab6_2;
JLabel lab6_3;
JLabel lab6_4;
JLabel lab6_5;
JLabel lab6_6;
JLabel lab6_7;
JLabel lab6_8;
JLabel lab6_9;
JLabel lab6_10;
// sem-7
JTextField combo7_1;
JTextField combo7_2;
JTextField combo7_3;
JTextField combo7_4;
JTextField combo7_5;
JTextField combo7_6;
JTextField combo7_7;
JLabel label7;
JLabel label7_1;
JLabel label7_2;
JLabel lab7_1;
JLabel lab7_2;
JLabel lab7_3;
JLabel lab7_4;
JLabel lab7_5;
JLabel lab7_6;
JLabel lab7_7;
JScrollPane jsp;
JButton submit;
public ECE1()
{//semester1
setLayout(null);
JButton submit=new JButton();
submit.setText("SUBMIT");
submit.setBounds(120,1010,700,40);
add(submit);
setPreferredSize(new Dimension(1500,1500));
String a1[] = {" ","RP PH-101","RT PH-101","RTI PH-101"};
String a2[] ={" ","RP AM-101","RT AM-101","RTI AM-101"};
String a3[]={" ","RP EE-101","RT EE-101","RTI EE-101"};
String a4[] ={" ","RP HU-101","RT HU-101","RTI HU-101"};
String a5[] ={" ","RP PH-103","RT PH-103","RTI PH-103"};
String a6[] ={" ","RP HU-103","RT HU-103","RTI HU-103"};
String a7[] ={" ","RP","RT","RTI"};
String a8[]={" ","RP ME-104","RT ME-104","RTI ME-104"};
JLabel label1=new JLabel();
JLabel label1_1=new JLabel();
JLabel label1_2=new JLabel();
JLabel lab1_1=new JLabel();
JLabel lab1_2=new JLabel();
JLabel lab1_3=new JLabel();
JLabel lab1_4=new JLabel();
JLabel lab1_5=new JLabel();
JLabel lab1_6=new JLabel();
JLabel lab1_7=new JLabel();
JLabel lab1_8=new JLabel();
combo1_1 = new JTextField();
combo1_2 = new JTextField();
combo1_3 = new JTextField();
combo1_4 = new JTextField();
combo1_5 = new JTextField();
combo1_6 = new JTextField();
combo1_7= new JTextField();
combo1_8= new JTextField();
label1.setText("Semester-1:");
label1_1.setText("Theory");
label1_2.setText("Labs");
lab1_1.setText("Physics");
lab1_2.setText("Math-I");
lab1_3.setText("BEEE");
lab1_4.setText("CS");
lab1_5.setText("PHY.lab");
lab1_6.setText("CS lab");
lab1_7.setText("BEEE lab");
lab1_8.setText("ME");
combo1_1.setBounds(20,70,70,20);
combo1_2.setBounds(120,70,70,20);
combo1_3.setBounds(220,70,70,20);
combo1_4.setBounds(320,70,70,20);
combo1_5.setBounds(420,70,70,20);
combo1_6.setBounds(520,70,70,20);
combo1_7.setBounds(620,70,70,20);
combo1_8.setBounds(720,70,70,20);
label1.setBounds(20,15,70,20);
label1_1.setBounds(20,30,70,20);
label1_2.setBounds(220,30,70,20);
lab1_1.setBounds(20,50,70,20);
lab1_2.setBounds(120,50,70,20);
lab1_3.setBounds(220,50,70,20);
lab1_4.setBounds(320,50,70,20);
lab1_5.setBounds(420,50,70,20);
lab1_6.setBounds(520,50,70,20);
lab1_7.setBounds(620,50,70,20);
lab1_8.setBounds(720,50,70,20);
add(combo1_1);
add(combo1_2);
add(combo1_3);
add(combo1_4);
add(combo1_5);
add(combo1_6);
add(combo1_7);
add(combo1_8);
add(label1);
add(label1_1);
add(label1_2);
add(lab1_1);
add(lab1_2);
add(lab1_3);
add(lab1_4);
add(lab1_5);
add(lab1_6);
add(lab1_7);
add(lab1_8);
//semester2
String b1[]={" ","RP AM-102","RT AM-102","RTI AM-102"};
String b2[]={" ","RP CS-101","RT CS-101","RTI CS-101"};
String b3[]={" ","RP CH-101","RT CH-101","RTI CH-101"};
String b4[]={" ","RP ME-101","RT ME-101","RTI ME-101"};
String b5[]={" ","RP ME-102","RT ME-102","RTI ME-102"};
String b6[]={" ","RP CS-103","RT CS-103","RTI CS-103"};
String b7[]={" ","RP CH-103","RT CH-103","RTI CH-103"};
String b8[]={" ","RP ME-105","RT ME-105","RTI ME-105"};
JFrame frame = new JFrame();
JLabel label2=new JLabel();
JLabel label2_1=new JLabel();
JLabel label2_2=new JLabel();
JLabel lab2_1=new JLabel();
JLabel lab2_2=new JLabel();
JLabel lab2_3=new JLabel();
JLabel lab2_4=new JLabel();
JLabel lab2_5=new JLabel();
JLabel lab2_6=new JLabel();
JLabel lab2_7=new JLabel();
JLabel lab2_8=new JLabel();
label2.setText("Semester-2:");
label2_1.setText("Theory");
label2_2.setText("Labs");
lab2_1.setText("M-II");
lab2_2.setText("FCPIT");
lab2_3.setText("CHEMISTRY");
lab2_4.setText("EME");
lab2_5.setText("ED");
lab2_6.setText("FCPIT lab");
lab2_7.setText("CHE.lab");
lab2_8.setText("CG lab");
setBackground(new Color(75,163,230));
combo2_1 = new JTextField();
combo2_2 = new JTextField();
combo2_3 = new JTextField();
combo2_4 = new JTextField();
combo2_5 = new JTextField();
combo2_6 = new JTextField();
combo2_7= new JTextField();
combo2_8= new JTextField();
label2.setBounds(20,155,70,20);
label2_1.setBounds(20,170,70,20);
label2_2.setBounds(520,170,70,20);
lab2_1.setBounds(20,190,70,20);
lab2_2.setBounds(120,190,70,20);
lab2_3.setBounds(220,190,70,20);
lab2_4.setBounds(320,190,70,20);
lab2_5.setBounds(420,190,70,20);
lab2_6.setBounds(520,190,70,20);
lab2_7.setBounds(620,190,70,20);
lab2_8.setBounds(720,190,70,20);
add(label2);
add(lab2_1);
add(lab2_2);
add(lab2_3);
add(lab2_4);
add(lab2_5);
add(lab2_6);
add(lab2_7);
add(lab2_8);
combo2_1.setBounds(20,210,70,20);
combo2_2.setBounds(120,210,70,20);
combo2_3.setBounds(220,210,70,20);
combo2_4.setBounds(320,210,70,20);
combo2_5.setBounds(420,210,70,20);
combo2_6.setBounds(520,210,70,20);
combo2_7.setBounds(620,210,70,20);
combo2_8.setBounds(720,210,70,20);
add(combo2_1);
add(combo2_2);
add(combo2_3);
add(combo2_4);
add(combo2_5);
add(combo2_6);
add(combo2_7);
add(combo2_8);
add(label2_1);
add(label2_2);
add(label2);
//semester3
String c1[]={" ","RP AM-201","RT AM-201","RTI AM-201"};
String c2[]={" ","RP EE-201","RT EE-201","RTI EE-201"};
String c3[]={" ","RP EC-201","RT EC-201","RTI EC-201"};
String c4[]={" ","RP EC-203","RT EC-203","RTI EC-203"};
String c5[]={" ","RP CS-252","RT CS-252","RTI CS-252"};
String c6[]={" ","RP EC-205","RT EC-205","RTI EC-205"};
String c7[]={" ","RP EC-207","RT EC-207","RTI Ec-207"};
String c8[]={" ","RP CS-254","RT CS-254","RTI CS-254"};
String c9[]={" ","RP ","RT ","RTI"};
JLabel label3=new JLabel();
JLabel label3_1=new JLabel();
JLabel label3_2=new JLabel();
JLabel lab3_1=new JLabel();
JLabel lab3_2=new JLabel();
JLabel lab3_3=new JLabel();
JLabel lab3_4=new JLabel();
JLabel lab3_5=new JLabel();
JLabel lab3_6=new JLabel();
JLabel lab3_7=new JLabel();
JLabel lab3_8=new JLabel();
JLabel lab3_9=new JLabel();
JLabel lab3_10=new JLabel();
label3.setText("Semester-3:");
label3_1.setText("Theory");
label3_2.setText("Labs");
lab3_1.setText("Math-III");
lab3_2.setText("NAS");
lab3_3.setText("EDC");
lab3_4.setText("EMI");
lab3_5.setText("OOP's");
lab3_6.setText("EDC lab");
lab3_7.setText("Instru.lab");
lab3_8.setText(" OOP'slab");
lab3_9.setText("Workshop Traning");
combo3_1 = new JTextField();
combo3_2 = new JTextField();
combo3_3 = new JTextField();
combo3_4 = new JTextField();
combo3_5 = new JTextField();
combo3_6 = new JTextField();
combo3_7= new JTextField();
combo3_8= new JTextField();
combo3_9= new JTextField();
label3.setBounds(20,295,70,20);
label3_1.setBounds(20,310,70,20);
label3_2.setBounds(520,310,70,20);
lab3_1.setBounds(20,330,70,20);
lab3_2.setBounds(120,330,70,20);
lab3_3.setBounds(220,330,70,20);
lab3_4.setBounds(320,330,70,20);
lab3_5.setBounds(420,330,70,20);
lab3_6.setBounds(520,330,70,20);
lab3_7.setBounds(620,330,70,20);
lab3_8.setBounds(720,330,70,20);
lab3_9.setBounds(820,330,70,20);
combo3_1.setBounds(20,350,70,20);
combo3_2.setBounds(120,350,70,20);
combo3_3.setBounds(220,350,70,20);
combo3_4.setBounds(320,350,70,20);
combo3_5.setBounds(420,350,70,20);
combo3_6.setBounds(520,350,70,20);
combo3_7.setBounds(620,350,70,20);
combo3_8.setBounds(720,350,70,20);
combo3_9.setBounds(820,350,70,20);
add(combo3_1);
add(combo3_2);
add(combo3_3);
add(combo3_4);
add(combo3_5);
add(combo3_6);
add(combo3_7);
add(combo3_8);
add(combo3_9);
add(label3);
add(label3_1);
add(label3_2);
add(lab3_1);
add(lab3_2);
add(lab3_3);
add(lab3_4);
add(lab3_5);
add(lab3_6);
add(lab3_7);
add(lab3_8);
add(lab3_9);
add(lab3_10);
//sem4
String d1[]={" ","RP EC-202","RT EC-202","RTI EC-202"};
String d2[]={" ","RP EC-204","RT EC-204","RTI EC-204"};
String d3[]={" ","RP EC-206","RT EC-206","RTI EC-206"};
String d4[]={" ","RP EC-208","RT EC-208","RTI EC-208"};
String d5[]={" ","RP IC-204","RT IC-204","RTI IC-204"};
String d6[]={" ","RP EC-210","RT EC-210","RTI EC-210"};
String d7[]={" ","RP EC-212","RT EC-212","RTI EC-212"};
String d8[]={" ","RP IC-212","RT IC-212","RTI IC-212"};
JLabel label4=new JLabel();
JLabel label4_1=new JLabel();
JLabel label4_2=new JLabel();
JLabel lab4_1=new JLabel();
JLabel lab4_2=new JLabel();
JLabel lab4_3=new JLabel();
JLabel lab4_4=new JLabel();
JLabel lab4_5=new JLabel();
JLabel lab4_6=new JLabel();
JLabel lab4_7=new JLabel();
JLabel lab4_8=new JLabel();
label4.setText("Semester-4:");
label4_1.setText("Theory");
label4_2.setText("Labs");
lab4_1.setText("AE");
lab4_2.setText("DE");
lab4_3.setText("SS");
lab4_4.setText("EMFT");
lab4_5.setText("LCS");
lab4_6.setText("AE lab");
lab4_7.setText("DE lab");
lab4_8.setText("LCS lab");
combo4_1 = new JTextField();
combo4_2 = new JTextField();
combo4_3 = new JTextField();
combo4_4 = new JTextField();
combo4_5 = new JTextField();
combo4_6 = new JTextField();
combo4_7= new JTextField();
combo4_8= new JTextField();
label4.setBounds(20,450,70,20);
label4_1.setBounds(20,470,70,20);
label4_2.setBounds(520,470,70,20);
lab4_1.setBounds(20,470,70,20);
lab4_2.setBounds(120,470,70,20);
lab4_3.setBounds(220,470,70,20);
lab4_4.setBounds(320,470,70,20);
lab4_5.setBounds(420,470,70,20);
lab4_6.setBounds(520,470,70,20);
lab4_7.setBounds(620,470,70,20);
lab4_8.setBounds(720,470,70,20);
combo4_1.setBounds(20,490,70,20);
combo4_2.setBounds(120,490,70,20);
combo4_3.setBounds(220,490,70,20);
combo4_4.setBounds(320,490,70,20);
combo4_5.setBounds(420,490,70,20);
combo4_6.setBounds(520,490,70,20);
combo4_7.setBounds(620,490,70,20);
combo4_8.setBounds(720,490,70,20);
add(combo4_1);
add(combo4_2);
add(combo4_3);
add(combo4_4);
add(combo4_5);
add(combo4_6);
add(combo4_7);
add(combo4_8);
add(label4);
add(label4_1);
add(label4_2);
add(lab4_1);
add(lab4_2);
add(lab4_3);
add(lab4_4);
add(lab4_5);
add(lab4_6);
add(lab4_7);
add(lab4_8);
//sem5
String e1[]={" ","RP EC-301","RT EC-301","RTI EC-301"};
String e2[]={" ","RP ME-251","RT ME-251","RTI ME-251"};
String e3[]={" ","RP EC-303","RT EC-303","RTI EC-303"};
String e4[]={" ","RP EC-305","RT EC-305","RTI EC-305"};
String e5[]={" ","RP EC-307","RT EC-307","RTI EC-307"};
String e6[]={" ","RP EC-309","RT EC-309","RTI EC-309"};
String e7[]={" ","RP EC-311","RT EC-311","RTI EC-311"};
String e8[]={" ","RP EC-313","RT EC-313","RTI EC-313"};
String e9[]={" ","RP EC-315","RT EC-315","RTI EC-315"};
String e10[]={" ","RP ","RT ","RTI "};
JLabel label5=new JLabel();
JLabel label5_1=new JLabel();
JLabel label5_2=new JLabel();
JLabel lab5_1=new JLabel();
JLabel lab5_2=new JLabel();
JLabel lab5_3=new JLabel();
JLabel lab5_4=new JLabel();
JLabel lab5_5=new JLabel();
JLabel lab5_6=new JLabel();
JLabel lab5_7=new JLabel();
JLabel lab5_8=new JLabel();
JLabel lab5_9=new JLabel();
JLabel lab5_10=new JLabel();
label5.setText("Semester-5:");
label5_1.setText("Theory");
label5_2.setText("Labs");
lab5_1.setText("ACS");
lab5_2.setText("TQM");
lab5_3.setText("AWP");
lab5_4.setText("LIC");
lab5_5.setText("MP");
lab5_6.setText("PDSC");
lab5_7.setText("ACS lab");
lab5_8.setText("LIC lab");
lab5_9.setText("MP lab");
lab5_10.setText("Instt.training");
combo5_1 = new JTextField();
combo5_2 = new JTextField();
combo5_3 = new JTextField();
combo5_4 = new JTextField();
combo5_5 = new JTextField();
combo5_6 = new JTextField();
combo5_7= new JTextField();
combo5_8= new JTextField();
combo5_9= new JTextField();
combo5_10= new JTextField();
label5.setBounds(20,575,70,20);
label5_1.setBounds(20,590,70,20);
label5_2.setBounds(520,590,70,20);
lab5_1.setBounds(20,610,70,20);
lab5_2.setBounds(120,610,70,20);
lab5_3.setBounds(220,610,70,20);
lab5_4.setBounds(320,610,70,20);
lab5_5.setBounds(420,610,70,20);
lab5_6.setBounds(520,610,70,20);
lab5_7.setBounds(620,610,70,20);
lab5_8.setBounds(720,610,70,20);
lab5_9.setBounds(820,610,70,20);
lab5_10.setBounds(920,610,70,20);
combo5_1.setBounds(20,630,70,20);
combo5_2.setBounds(120,630,70,20);
combo5_3.setBounds(220,630,70,20);
combo5_4.setBounds(320,630,70,20);
combo5_5.setBounds(420,630,70,20);
combo5_6.setBounds(520,630,70,20);
combo5_7.setBounds(620,630,70,20);
combo5_8.setBounds(720,630,70,20);
combo5_9.setBounds(820,630,70,20);
combo5_10.setBounds(920,630,70,20);
add(combo5_1);
add(combo5_2);
add(combo5_3);
add(combo5_4);
add(combo5_5);
add(combo5_6);
add(combo5_7);
add(combo5_8);
add(combo5_9);
add(combo5_10);
add(label5);
add(label5_1);
add(label5_2);
add(lab5_1);
add(lab5_2);
add(lab5_3);
add(lab5_4);
add(lab5_5);
add(lab5_6);
add(lab5_7);
add(lab5_8);
add(lab5_9);
add(lab5_10);
//sem-6
String f1[]={" ","RP EC-302","RT EC-302","RTI EC-302"};
String f2[]={" ","RP EC-304","RT EC-304","RTI EC-304"};
String f3[]={" ","RP EC-306","RT EC-306","RTI EC-306"};
String f4[]={" ","RP CE-216","RT CE-216","RTI CE-216"};
String f5[]={" ","RP EC-308","RT EC-308","RTI EC-308"};
String f6[]={" ","RP IT-","RT IT-","RTI IT-"};
String f7[]={" ","RP EC-310","RT EC-310","RTI EC-310"};
String f8[]={" ","RP EC-312","RT EC-312","RTI EC-312"};
String f9[]={" ","RP EC-314","RT EC-314","RTI EC-314"};
String f10[]={" ","RP EC-316","RT EC-316","RTI EC-316"};
JLabel label6=new JLabel();
JLabel label6_1=new JLabel();
JLabel label6_2=new JLabel();
JLabel lab6_1=new JLabel();
JLabel lab6_2=new JLabel();
JLabel lab6_3=new JLabel();
JLabel lab6_4=new JLabel();
JLabel lab6_5=new JLabel();
JLabel lab6_6=new JLabel();
JLabel lab6_7=new JLabel();
JLabel lab6_8=new JLabel();
JLabel lab6_9=new JLabel();
JLabel lab6_10=new JLabel();
label6.setText("Semester-6:");
label6_1.setText("Theory");
label6_2.setText("Labs");
lab6_1.setText("MRE");
lab6_2.setText("DC");
lab6_3.setText("MCES");
lab6_4.setText("EVS");
lab6_5.setText("DSP");
lab6_6.setText("ELECTIVE-I");
lab6_7.setText("MRE lab");
lab6_8.setText("DC lab");
lab6_9.setText("MCES lab");
lab6_10.setText("DSP lab");
combo6_1 = new JTextField();
combo6_2 = new JTextField();
combo6_3 = new JTextField();
combo6_4 = new JTextField();
combo6_5 = new JTextField();
combo6_6 = new JTextField();
combo6_7= new JTextField();
combo6_8= new JTextField();
combo6_9= new JTextField();
combo6_10= new JTextField();
label6.setBounds(20,715,70,20);
label6_1.setBounds(20,730,70,20);
label6_2.setBounds(520,730,70,20);
lab6_1.setBounds(20,750,70,20);
lab6_2.setBounds(120,750,70,20);
lab6_3.setBounds(220,750,70,20);
lab6_4.setBounds(320,750,70,20);
lab6_5.setBounds(420,750,70,20);
lab6_6.setBounds(520,750,70,20);
lab6_7.setBounds(620,750,70,20);
lab6_8.setBounds(720,750,70,20);
lab6_9.setBounds(820,750,70,20);
lab6_10.setBounds(920,750,70,20);
combo6_1.setBounds(20,770,70,20);
combo6_2.setBounds(120,770,70,20);
combo6_3.setBounds(220,770,70,20);
combo6_4.setBounds(320,770,70,20);
combo6_5.setBounds(420,770,70,20);
combo6_6.setBounds(520,770,70,20);
combo6_7.setBounds(620,770,70,20);
combo6_8.setBounds(720,770,70,20);
combo6_9.setBounds(820,770,70,20);
combo6_10.setBounds(920,770,70,20);
add(combo6_1);
add(combo6_2);
add(combo6_3);
add(combo6_4);
add(combo6_5);
add(combo6_6);
add(combo6_7);
add(combo6_8);
add(combo6_9);
add(combo6_10);
add(label6);
add(label6_1);
add(label6_2);
add(lab6_1);
add(lab6_2);
add(lab6_3);
add(lab6_4);
add(lab6_5);
add(lab6_6);
add(lab6_7);
add(lab6_8);
add(lab6_9);
add(lab6_10);
// sem-7 OR 8
String g1[]={" ","RP CS-402","RT CS-402","RTI CS-402"};
String g2[]={" ","RP EC-404","RT EC-404","RTI EC-404"};
String g3[]={" ","RP EC-406","RT EC-406","RTI EC-406"};
String g4[]={" ","RP IT-","RT IT-","RTI IT-"};
String g5[]={" ","RP IT-","RT IT-","RTI IT-"};
String g7[]={" ","RP EC-410","RT EC-410","RTI EC-410"};
String g6[]={" ","RP EC-408","RT IT-408","RTI EC-408"};
JLabel label7=new JLabel();
JLabel label7_1=new JLabel();
JLabel label7_2=new JLabel();
JLabel lab7_1=new JLabel();
JLabel lab7_2=new JLabel();
JLabel lab7_3=new JLabel();
JLabel lab7_4=new JLabel();
JLabel lab7_5=new JLabel();
JLabel lab7_6=new JLabel();
JLabel lab7_7=new JLabel();
label7.setText("Semester-7 OR 8:");
label7_1.setText("Theory");
label7_2.setText("Labs");
lab7_1.setText("CN");
lab7_2.setText("OFC");
lab7_3.setText("VLSI & TECH.");
lab7_4.setText("ELECTIVE-II");
lab7_5.setText("ELECTIVE-III");
lab7_6.setText("MAJOR PROJ.");
lab7_7.setText("VLSI lab");
combo7_1 = new JTextField();
combo7_2 = new JTextField();
combo7_3 = new JTextField();
combo7_4 = new JTextField();
combo7_5 = new JTextField();
combo7_6 = new JTextField();
combo7_7= new JTextField();
label7.setBounds(20,855,100,20);
label7_1.setBounds(20,870,70,20);
label7_2.setBounds(520,870,70,20);
lab7_1.setBounds(20,890,70,20);
lab7_2.setBounds(120,890,70,20);
lab7_3.setBounds(220,890,70,20);
lab7_4.setBounds(320,890,70,20);
lab7_5.setBounds(420,890,70,20);
lab7_6.setBounds(520,890,70,20);
lab7_7.setBounds(620,890,70,20);
combo7_1.setBounds(20,910,70,20);
combo7_2.setBounds(120,910,70,20);
combo7_3.setBounds(220,910,70,20);
combo7_4.setBounds(320,910,70,20);
combo7_5.setBounds(420,910,70,20);
combo7_6.setBounds(520,910,70,20);
combo7_7.setBounds(620,910,70,20);
add(combo7_1);
add(combo7_2);
add(combo7_3);
add(combo7_4);
add(combo7_5);
add(combo7_6);
add(combo7_7);
add(label7);
add(label7_1);
add(label7_2);
add(lab7_1);
add(lab7_2);
add(lab7_3);
add(lab7_4);
add(lab7_5);
add(lab7_6);
add(lab7_7);
/*add(label1);
add(label2);
add(label3);
add(label4);
add(label5);
add(label6);
add(label7);*/
//frame.add(panel);
submit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
submit_actionPerformed(e);
}
});
}
void submit_actionPerformed(java.awt.event.ActionEvent evt)
{
System.out.println("sucess...");
nextpage p=null;
print r=new print();
Object o = p.sem.getSelectedItem();
System.out.println(o);
if(o.equals("1"))
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:office","","");
Statement stmt=con.createStatement();
String query="update project set "+
" s_name = '"+p.sname.getText()+
"' , uni_roll = '"+p.uni_rol.getText()+
"' , f_name = '" + p.f_name.getText()+
"' , branch = '"+p.branch.getSelectedItem()+
"' , batch = '"+p.batch.getSelectedItem()+
"' , sem = '"+p.sem.getSelectedItem()+
"' , s1 = '"+combo1_1.getText()+
"' , s2 = '"+combo1_2.getText()+
"' , s3 = '"+combo1_3.getText()+
"' , s4 = '"+combo1_4.getText()+
"' , l1 = '"+combo1_5.getText()+
"' , l2 = '"+combo1_6.getText()+
"' , l3 = '"+combo1_7.getText()+
"' , l4 = '"+combo1_8.getText()+
"' where c_roll='"+p.clsrol.getText()+"'";
stmt.executeUpdate(query);
con.close();
System.out.println("record enter sucessfully");
}
catch(Exception ex)
{
System.out.println("Error - "+ex);
}
remove(this);
setVisible(true);
}
if(o.equals("2"))
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:office","","");
Statement stmt=con.createStatement();
String query="update project set "+
" s_name = '"+p.sname.getText()+
"' , uni_roll = '"+p.uni_rol.getText()+
"' , f_name = '" + p.f_name.getText()+
"' , branch = '"+p.branch.getSelectedItem()+
"' , batch = '"+p.batch.getSelectedItem()+
"' , sem = '"+p.sem.getSelectedItem()+
"' , s1 = '"+combo2_1.getText()+
"' , s2 = '"+combo2_2.getText()+
"' , s3 = '"+combo2_3.getText()+
"' , s4 = '"+combo2_4.getText()+
"' , s5 = '"+combo2_5.getText()+
"' , l1 = '"+combo2_6.getText()+
"' , l2 = '"+combo2_7.getText()+
"' , l3 = '"+combo2_8.getText()+
"' where c_roll='"+p.clsrol.getText()+"'";
stmt.executeUpdate(query);
con.close();
System.out.println("record enter sucessfully");
}
catch(Exception ex)
{
System.out.println("Error - "+ex);
}
remove(this);
setVisible(true);
}
if(o.equals("3"))
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:office","","");
Statement stmt=con.createStatement();
String query="update project set "+
" s_name = '"+p.sname.getText()+
"' , uni_roll = '"+p.uni_rol.getText()+
"' , f_name = '" + p.f_name.getText()+
"' , branch = '"+p.branch.getSelectedItem()+
"' , batch = '"+p.batch.getSelectedItem()+
"' , sem = '"+p.sem.getSelectedItem()+
"' , s1 = '"+combo3_1.getText()+
"' , s2 = '"+combo3_2.getText()+
"' , s3 = '"+combo3_3.getText()+
"' , s4 = '"+combo3_4.getText()+
"' , s5 = '"+combo3_5.getText()+
"' , l1 = '"+combo3_6.getText()+
"' , l2 = '"+combo3_7.getText()+
"' , l3 = '"+combo3_8.getText()+
"' , l4 = '"+combo3_9.getText()+
"' where c_roll='"+p.clsrol.getText()+"'";
stmt.executeUpdate(query);
con.close();
System.out.println("record enter sucessfully");
}
catch(Exception ex)
{
System.out.println("Error - "+ex);
}
remove(this);
setVisible(true);
}
if(o.equals("4"))
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:office","","");
Statement stmt=con.createStatement();
String query="update project set "+
" s_name = '"+p.sname.getText()+
"' , uni_roll = '"+p.uni_rol.getText()+
"' , f_name = '" + p.f_name.getText()+
"' , branch = '"+p.branch.getSelectedItem()+
"' , batch = '"+p.batch.getSelectedItem()+
"' , sem = '"+p.sem.getSelectedItem()+
"' , s1 = '"+combo4_1.getText()+
"' , s2 = '"+combo4_2.getText()+
"' , s3 = '"+combo4_3.getText()+
"' , s4 = '"+combo4_4.getText()+
"' , s5 = '"+combo4_5.getText()+
"' , l1 = '"+combo4_6.getText()+
"' , l2 = '"+combo4_7.getText()+
"' , l3 = '"+combo4_8.getText()+