├── README.md
└── StudentRegistration(Javafx)
├── AdminDatabase
├── build.xml
├── build
├── built-jar.properties
└── classes
│ ├── Student.class
│ ├── StudentRegistration.class
│ └── school.png
├── dist
├── StudentRegistration.jar
└── lib
│ └── sqlite-jdbc-3.8.11.2.jar
├── manifest.mf
├── nbproject
├── build-impl.xml
├── configs
│ ├── Run_as_WebStart.properties
│ └── Run_in_Browser.properties
├── genfiles.properties
├── jfx-impl.xml
├── private
│ ├── configs
│ │ ├── Run_as_WebStart.properties
│ │ └── Run_in_Browser.properties
│ ├── private.properties
│ └── private.xml
├── project.properties
└── project.xml
└── src
├── Student.java
├── StudentRegistration.java
└── school.png
/README.md:
--------------------------------------------------------------------------------
1 | # Student-Registration-system-in-java-using-javafx
2 | This is a java project in Student Registartion System. This system used SQLITE database and GUI is created in javafx
3 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/AdminDatabase:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashmeet4293/Student-Registration-system-in-java-using-javafx/53dad89754885561353e2156290af9ae668449dd/StudentRegistration(Javafx)/AdminDatabase
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/build.xml:
--------------------------------------------------------------------------------
1 |
2 | Builds, tests, and runs the project StudentRegistration.
3 |
4 |
53 |
54 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/build/built-jar.properties:
--------------------------------------------------------------------------------
1 | #Thu, 15 Dec 2016 18:10:20 +0545
2 |
3 |
4 | /home/ashmeet/NetBeansProjects/StudentRegistration(Javafx)=
5 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/build/classes/Student.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashmeet4293/Student-Registration-system-in-java-using-javafx/53dad89754885561353e2156290af9ae668449dd/StudentRegistration(Javafx)/build/classes/Student.class
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/build/classes/StudentRegistration.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashmeet4293/Student-Registration-system-in-java-using-javafx/53dad89754885561353e2156290af9ae668449dd/StudentRegistration(Javafx)/build/classes/StudentRegistration.class
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/build/classes/school.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashmeet4293/Student-Registration-system-in-java-using-javafx/53dad89754885561353e2156290af9ae668449dd/StudentRegistration(Javafx)/build/classes/school.png
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/dist/StudentRegistration.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashmeet4293/Student-Registration-system-in-java-using-javafx/53dad89754885561353e2156290af9ae668449dd/StudentRegistration(Javafx)/dist/StudentRegistration.jar
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/dist/lib/sqlite-jdbc-3.8.11.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashmeet4293/Student-Registration-system-in-java-using-javafx/53dad89754885561353e2156290af9ae668449dd/StudentRegistration(Javafx)/dist/lib/sqlite-jdbc-3.8.11.2.jar
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/build-impl.xml:
--------------------------------------------------------------------------------
1 |
2 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
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 | Must set src.dir
234 | Must set test.src.dir
235 | Must set build.dir
236 | Must set dist.dir
237 | Must set build.classes.dir
238 | Must set dist.javadoc.dir
239 | Must set build.test.classes.dir
240 | Must set build.test.results.dir
241 | Must set build.classes.excludes
242 | Must set dist.jar
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 | Must set javac.includes
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 | No tests executed.
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 |
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 | Must set JVM to use for profiling in profiler.info.jvm
723 | Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
724 |
725 |
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 |
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 | Must select some files in the IDE or set javac.includes
952 |
953 |
954 |
955 |
956 |
957 |
958 |
959 |
960 |
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 |
1001 | To run this application from the command line without Ant, try:
1002 |
1003 | java -jar "${dist.jar.resolved}"
1004 |
1005 |
1006 |
1007 |
1008 |
1009 |
1010 |
1011 |
1012 |
1013 |
1014 |
1015 |
1016 |
1017 |
1018 |
1019 |
1020 |
1021 |
1022 |
1023 |
1024 |
1025 |
1026 |
1027 |
1028 |
1029 |
1030 |
1031 |
1032 |
1033 |
1034 |
1039 |
1040 |
1041 |
1042 |
1043 |
1044 |
1045 |
1046 |
1047 |
1048 |
1049 |
1050 | Must select one file in the IDE or set run.class
1051 |
1052 |
1053 |
1054 | Must select one file in the IDE or set run.class
1055 |
1056 |
1057 |
1062 |
1063 |
1064 |
1065 |
1066 |
1067 |
1068 |
1069 |
1070 |
1071 |
1072 |
1073 |
1074 |
1075 |
1076 |
1077 |
1078 |
1079 |
1080 |
1081 | Must select one file in the IDE or set debug.class
1082 |
1083 |
1084 |
1085 |
1086 | Must select one file in the IDE or set debug.class
1087 |
1088 |
1089 |
1090 |
1091 | Must set fix.includes
1092 |
1093 |
1094 |
1095 |
1096 |
1097 |
1098 |
1103 |
1106 |
1107 | This target only works when run from inside the NetBeans IDE.
1108 |
1109 |
1110 |
1111 |
1112 |
1113 |
1114 |
1115 |
1116 | Must select one file in the IDE or set profile.class
1117 | This target only works when run from inside the NetBeans IDE.
1118 |
1119 |
1120 |
1121 |
1122 |
1123 |
1124 |
1125 |
1126 | This target only works when run from inside the NetBeans IDE.
1127 |
1128 |
1129 |
1130 |
1131 |
1132 |
1133 |
1134 |
1135 |
1136 |
1137 |
1138 |
1139 | This target only works when run from inside the NetBeans IDE.
1140 |
1141 |
1142 |
1143 |
1144 |
1145 |
1146 |
1147 |
1148 |
1149 |
1150 |
1151 |
1152 |
1153 |
1154 |
1155 |
1156 |
1157 |
1158 |
1159 |
1160 |
1161 |
1164 |
1165 |
1166 |
1167 |
1168 |
1169 |
1170 |
1171 |
1172 |
1173 |
1174 |
1175 |
1176 |
1177 | Must select one file in the IDE or set run.class
1178 |
1179 |
1180 |
1181 |
1182 |
1183 | Must select some files in the IDE or set test.includes
1184 |
1185 |
1186 |
1187 |
1188 | Must select one file in the IDE or set run.class
1189 |
1190 |
1191 |
1192 |
1193 | Must select one file in the IDE or set applet.url
1194 |
1195 |
1196 |
1197 |
1202 |
1203 |
1204 |
1205 |
1206 |
1207 |
1208 |
1209 |
1210 |
1211 |
1212 |
1213 |
1214 |
1215 |
1216 |
1217 |
1218 |
1219 |
1220 |
1221 |
1222 |
1223 |
1224 |
1225 |
1226 |
1227 |
1228 |
1229 |
1230 |
1231 |
1232 |
1233 |
1234 |
1235 |
1236 |
1237 |
1238 |
1239 |
1240 |
1241 |
1246 |
1247 |
1248 |
1249 |
1250 |
1251 |
1252 |
1253 |
1254 |
1255 |
1256 |
1257 |
1258 |
1259 |
1260 |
1261 |
1262 |
1263 |
1264 |
1265 |
1266 |
1267 |
1268 |
1269 |
1270 |
1271 |
1272 | Must select some files in the IDE or set javac.includes
1273 |
1274 |
1275 |
1276 |
1277 |
1278 |
1279 |
1280 |
1281 |
1282 |
1283 |
1284 |
1289 |
1290 |
1291 |
1292 |
1293 |
1294 |
1295 |
1296 | Some tests failed; see details above.
1297 |
1298 |
1299 |
1300 |
1301 |
1302 |
1303 |
1304 |
1305 | Must select some files in the IDE or set test.includes
1306 |
1307 |
1308 |
1309 | Some tests failed; see details above.
1310 |
1311 |
1312 |
1313 | Must select some files in the IDE or set test.class
1314 | Must select some method in the IDE or set test.method
1315 |
1316 |
1317 |
1318 | Some tests failed; see details above.
1319 |
1320 |
1321 |
1326 |
1327 | Must select one file in the IDE or set test.class
1328 |
1329 |
1330 |
1331 | Must select one file in the IDE or set test.class
1332 | Must select some method in the IDE or set test.method
1333 |
1334 |
1335 |
1336 |
1337 |
1338 |
1339 |
1340 |
1341 |
1342 |
1343 |
1344 |
1349 |
1350 | Must select one file in the IDE or set applet.url
1351 |
1352 |
1353 |
1354 |
1355 |
1356 |
1357 |
1362 |
1363 | Must select one file in the IDE or set applet.url
1364 |
1365 |
1366 |
1367 |
1368 |
1369 |
1370 |
1371 |
1376 |
1377 |
1378 |
1379 |
1380 |
1381 |
1382 |
1383 |
1384 |
1385 |
1386 |
1387 |
1388 |
1389 |
1390 |
1391 |
1392 |
1393 |
1394 |
1395 |
1396 |
1397 |
1398 |
1399 |
1400 |
1401 |
1402 |
1403 |
1404 |
1405 |
1406 |
1407 |
1408 |
1409 |
1410 |
1411 |
1412 |
1413 |
1414 |
1415 |
1416 |
1417 |
1418 |
1419 |
1420 |
1421 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/configs/Run_as_WebStart.properties:
--------------------------------------------------------------------------------
1 | # Do not modify this property in this configuration. It can be re-generated.
2 | $label=Run as WebStart
3 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/configs/Run_in_Browser.properties:
--------------------------------------------------------------------------------
1 | # Do not modify this property in this configuration. It can be re-generated.
2 | $label=Run in Browser
3 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=db4afa45
2 | build.xml.script.CRC32=6ed127ac
3 | build.xml.stylesheet.CRC32=8064a381@1.79.1.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=db4afa45
7 | nbproject/build-impl.xml.script.CRC32=3f2c0a77
8 | nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48
9 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/private/configs/Run_as_WebStart.properties:
--------------------------------------------------------------------------------
1 | # Do not modify this property in this configuration. It can be re-generated.
2 | javafx.run.as=webstart
3 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/private/configs/Run_in_Browser.properties:
--------------------------------------------------------------------------------
1 | # Do not modify this property in this configuration. It can be re-generated.
2 | javafx.run.as=embedded
3 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | auxiliary.org-netbeans-modules-projectapi.issue214819_5f_fx_5f_enabled=true
2 | # No need to modify this property unless customizing JavaFX Ant task infrastructure
3 | endorsed.javafx.ant.classpath=.
4 | file.reference.sqlite-jdbc-3.8.11.2.jar=/home/ashmeet/NetBeansProjects/sqlite-jdbc-3.8.11.2.jar
5 | user.properties.file=/home/ashmeet/.netbeans/8.1/build.properties
6 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/private/private.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/project.properties:
--------------------------------------------------------------------------------
1 | annotation.processing.enabled=true
2 | annotation.processing.enabled.in.editor=false
3 | annotation.processing.processor.options=
4 | annotation.processing.processors.list=
5 | annotation.processing.run.all.processors=true
6 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
7 | application.title=StudentRegistration
8 | application.vendor=ashmeet
9 | build.classes.dir=${build.dir}/classes
10 | build.classes.excludes=**/*.java,**/*.form
11 | # This directory is removed when the project is cleaned:
12 | build.dir=build
13 | build.generated.dir=${build.dir}/generated
14 | build.generated.sources.dir=${build.dir}/generated-sources
15 | # Only compile against the classpath explicitly listed here:
16 | build.sysclasspath=ignore
17 | build.test.classes.dir=${build.dir}/test/classes
18 | build.test.results.dir=${build.dir}/test/results
19 | compile.on.save=true
20 | compile.on.save.unsupported.javafx=true
21 | # Uncomment to specify the preferred debugger connection transport:
22 | #debug.transport=dt_socket
23 | debug.classpath=\
24 | ${run.classpath}
25 | debug.test.classpath=\
26 | ${run.test.classpath}
27 | # This directory is removed when the project is cleaned:
28 | dist.dir=dist
29 | dist.jar=${dist.dir}/StudentRegistration.jar
30 | dist.javadoc.dir=${dist.dir}/javadoc
31 | endorsed.classpath=
32 | excludes=
33 | file.reference.sqlite-jdbc-3.8.11.2.jar=/home/ashmeet/Downloads/sqlite-jdbc-3.8.11.2.jar
34 | includes=**
35 | # Non-JavaFX jar file creation is deactivated in JavaFX 2.0+ projects
36 | jar.archive.disabled=true
37 | jar.compress=false
38 | javac.classpath=\
39 | ${javafx.classpath.extension}:\
40 | ${file.reference.sqlite-jdbc-3.8.11.2.jar}
41 | # Space-separated list of extra javac options
42 | javac.compilerargs=
43 | javac.deprecation=false
44 | javac.processorpath=\
45 | ${javac.classpath}
46 | javac.source=1.8
47 | javac.target=1.8
48 | javac.test.classpath=\
49 | ${javac.classpath}:\
50 | ${build.classes.dir}
51 | javac.test.processorpath=\
52 | ${javac.test.classpath}
53 | javadoc.additionalparam=
54 | javadoc.author=false
55 | javadoc.encoding=${source.encoding}
56 | javadoc.noindex=false
57 | javadoc.nonavbar=false
58 | javadoc.notree=false
59 | javadoc.private=false
60 | javadoc.splitindex=true
61 | javadoc.use=true
62 | javadoc.version=false
63 | javadoc.windowtitle=
64 | javafx.application.implementation.version=1.0
65 | javafx.binarycss=false
66 | javafx.classpath.extension=\
67 | ${java.home}/lib/javaws.jar:\
68 | ${java.home}/lib/deploy.jar:\
69 | ${java.home}/lib/plugin.jar
70 | javafx.deploy.allowoffline=true
71 | # If true, application update mode is set to 'background', if false, update mode is set to 'eager'
72 | javafx.deploy.backgroundupdate=false
73 | javafx.deploy.embedJNLP=true
74 | javafx.deploy.includeDT=true
75 | # Set true to prevent creation of temporary copy of deployment artifacts before each run (disables concurrent runs)
76 | javafx.disable.concurrent.runs=false
77 | # Set true to enable multiple concurrent runs of the same WebStart or Run-in-Browser project
78 | javafx.enable.concurrent.external.runs=false
79 | # This is a JavaFX project
80 | javafx.enabled=true
81 | javafx.fallback.class=com.javafx.main.NoJavaFXFallback
82 | # Main class for JavaFX
83 | javafx.main.class=StudentRegistration
84 | javafx.preloader.class=
85 | # This project does not use Preloader
86 | javafx.preloader.enabled=false
87 | javafx.preloader.jar.filename=
88 | javafx.preloader.jar.path=
89 | javafx.preloader.project.path=
90 | javafx.preloader.type=none
91 | # Set true for GlassFish only. Rebases manifest classpaths of JARs in lib dir. Not usable with signed JARs.
92 | javafx.rebase.libs=false
93 | javafx.run.height=600
94 | javafx.run.width=800
95 | # Pre-JavaFX 2.0 WebStart is deactivated in JavaFX 2.0+ projects
96 | jnlp.enabled=false
97 | # Main class for Java launcher
98 | main.class=com.javafx.main.Main
99 | # For improved security specify narrower Codebase manifest attribute to prevent RIAs from being repurposed
100 | manifest.custom.codebase=*
101 | # Specify Permissions manifest attribute to override default (choices: sandbox, all-permissions)
102 | manifest.custom.permissions=
103 | manifest.file=manifest.mf
104 | meta.inf.dir=${src.dir}/META-INF
105 | platform.active=default_platform
106 | run.classpath=\
107 | ${dist.jar}:\
108 | ${javac.classpath}:\
109 | ${build.classes.dir}
110 | run.test.classpath=\
111 | ${javac.test.classpath}:\
112 | ${build.test.classes.dir}
113 | source.encoding=UTF-8
114 | src.dir=src
115 | test.src.dir=test
116 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | StudentRegistration
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/src/Student.java:
--------------------------------------------------------------------------------
1 |
2 | public class Student{
3 | String id,firstName,middleName,lastName,nameOfSubject,TheoreticalOrNumerical,previousLectureReview
4 | ,noOfStudents,EUFCalculation,date,QOD,username,password;
5 | Student(String id,String firstName,String lastName,String nameOfSubject, String TheoreticalOrNumerical,
6 | String previousLectureReview, String noOfStudents,String EUFCalculation, String date, String QOD,
7 | String username,String password){
8 | this.id=id;
9 | this.firstName=firstName;
10 | this.lastName=lastName;
11 | this.nameOfSubject=nameOfSubject;
12 | this.TheoreticalOrNumerical=TheoreticalOrNumerical;
13 | this.previousLectureReview=previousLectureReview;
14 | this.noOfStudents=noOfStudents;
15 | this.EUFCalculation=EUFCalculation;
16 | this.date=date;
17 | this.QOD=QOD;
18 | this.username=username;
19 | this.password=password;
20 | }
21 |
22 | Student(String string) {
23 | throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
24 | }
25 |
26 | Student() {
27 | throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
28 | }
29 |
30 | public String getId() {
31 | return id;
32 | }
33 |
34 | public void setId(String id) {
35 | this.id = id;
36 | }
37 |
38 | public String getFirstName() {
39 | return firstName;
40 | }
41 |
42 | public void setFirstName(String firstName) {
43 | this.firstName = firstName;
44 | }
45 |
46 | public String getMiddleName() {
47 | return middleName;
48 | }
49 |
50 | public void setMiddleName(String middleName) {
51 | this.middleName = middleName;
52 | }
53 |
54 | public String getLastName() {
55 | return lastName;
56 | }
57 |
58 | public void setLastName(String lastName) {
59 | this.lastName = lastName;
60 | }
61 |
62 | public String getNameOfSubject() {
63 | return nameOfSubject;
64 | }
65 |
66 | public void setNameOfSubject(String nameOfSubject) {
67 | this.nameOfSubject = nameOfSubject;
68 | }
69 |
70 | public String getTheoreticalOrNumerical() {
71 | return TheoreticalOrNumerical;
72 | }
73 |
74 | public void setTheoreticalOrNumerical(String TheoreticalOrNumerical) {
75 | this.TheoreticalOrNumerical = TheoreticalOrNumerical;
76 | }
77 |
78 | public String getPreviousLectureReview() {
79 | return previousLectureReview;
80 | }
81 |
82 | public void setPreviousLectureReview(String previousLectureReview) {
83 | this.previousLectureReview = previousLectureReview;
84 | }
85 |
86 | public String getNoOfStudents() {
87 | return noOfStudents;
88 | }
89 |
90 | public void setNoOfStudents(String noOfStudents) {
91 | this.noOfStudents = noOfStudents;
92 | }
93 |
94 | public String getEUFCalculation() {
95 | return EUFCalculation;
96 | }
97 |
98 | public void setEUFCalculation(String EUFCalculation) {
99 | this.EUFCalculation = EUFCalculation;
100 | }
101 |
102 | public String getDate() {
103 | return date;
104 | }
105 |
106 | public void setDate(String date) {
107 | this.date = date;
108 | }
109 |
110 | public String getQOD() {
111 | return QOD;
112 | }
113 |
114 | public void setQOD(String QOD) {
115 | this.QOD = QOD;
116 | }
117 |
118 | public String getUsername() {
119 | return username;
120 | }
121 |
122 | public void setUsername(String username) {
123 | this.username = username;
124 | }
125 |
126 | public String getPassword() {
127 | return password;
128 | }
129 |
130 | public void setPassword(String password) {
131 | this.password = password;
132 | }
133 | }
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/src/StudentRegistration.java:
--------------------------------------------------------------------------------
1 |
2 | import java.sql.*;
3 | import java.util.logging.Level;
4 | import java.util.logging.Logger;
5 | import javafx.application.Application;
6 | import javafx.collections.FXCollections;
7 | import javafx.collections.ObservableList;
8 | import javafx.geometry.Insets;
9 | import javafx.geometry.Pos;
10 | import javafx.scene.Scene;
11 | import javafx.scene.control.*;
12 | import javafx.scene.control.Alert.AlertType;
13 | import javafx.scene.control.cell.PropertyValueFactory;
14 | import javafx.scene.image.Image;
15 | import javafx.scene.input.KeyCode;
16 | import javafx.scene.layout.*;
17 | import javafx.scene.text.Font;
18 | import javafx.scene.text.Text;
19 | import javafx.stage.Stage;
20 |
21 | public class StudentRegistration extends Application {
22 |
23 | Label lID, lFirstName, lLastName, lDate, noOfStudents, EUFCalculation;
24 | TextField tID, tFirstName, tLastName, tNoOfStudents, tEUFCalculation;
25 | DatePicker date;
26 | Text academicInfoText;
27 | Label ltopicCovered, QOD, userName, password,wrongCredentialLbl;
28 | RadioButton theoretical, numerical;
29 | ToggleGroup type = new ToggleGroup();
30 | TextField tuserName, topicCovered;
31 | PasswordField pPassword;
32 | ChoiceBox choiceBox = new ChoiceBox();
33 | ChoiceBox qualityOfDelivery = new ChoiceBox();
34 | CheckBox previousLectureReview = new CheckBox("Previous Lecture Review");
35 | Button loginBtn, saveBtn, loadBtn, updateBtn, deleteBtn;
36 |
37 | Connection conn = null;
38 | PreparedStatement pst = null;
39 | ResultSet rs = null;
40 | Scene scene1, scene2;
41 | BorderPane layout, borderPane;
42 | private String radioButtonLabel, message, qod;
43 | TableView table = new TableView<>();
44 | ObservableList data = FXCollections.observableArrayList();
45 | String subject;
46 | ObservableList option = FXCollections.observableArrayList();
47 | Image titleIcon = new Image("school.png");
48 |
49 | public static void main(String[] args) {
50 | launch(args);
51 | }
52 |
53 | @Override
54 | public void start(Stage window) throws Exception {
55 | window.setTitle("Login Window");
56 | window.getIcons().add(titleIcon);
57 | databaseConnector();
58 |
59 | GridPane grid = new GridPane();
60 | grid.setVgap(20);
61 | grid.setHgap(20);
62 | grid.setPadding(new Insets(10));
63 |
64 | Text loginText = new Text("Student Registration System");
65 | loginText.setFont(Font.font("SanSerif", 20));
66 | BorderPane borderPane1 = new BorderPane();
67 | borderPane1.getChildren().add(loginText);
68 | grid.add(borderPane1, 0, 0);
69 |
70 | userName = new Label("User Name ");
71 | grid.add(userName, 0, 1);
72 | tuserName = new TextField();
73 | tuserName.setPromptText("User Name");
74 | grid.add(tuserName, 1, 1);
75 |
76 | password = new Label("Password");
77 | grid.add(password, 0, 2);
78 | pPassword = new PasswordField();
79 | pPassword.setPromptText("password");
80 | grid.add(pPassword, 1, 2);
81 | pPassword.setOnKeyPressed(e -> {
82 | if (e.getCode() == KeyCode.ENTER) {
83 | loginBtn.fire();
84 | }
85 | });
86 |
87 | ComboBox comboBox = new ComboBox<>();
88 | comboBox.getItems().addAll("Admin", "Student");
89 | comboBox.setValue("Admin");
90 | comboBox.setOnAction(e -> {
91 | if ("Admin".equals(comboBox.getValue())) {
92 | System.out.println("Admin");
93 | } else {
94 | System.out.println("Student");
95 | }
96 | });
97 | grid.add(comboBox, 1, 3);
98 |
99 | loginBtn = new Button("Login");
100 | loginBtn.setOnAction(e -> {
101 | try {
102 | String query = "select * from Admin where username = ? and password=?";
103 | pst = conn.prepareStatement(query);
104 | pst.setString(1, tuserName.getText());
105 | pst.setString(2, pPassword.getText());
106 | rs = pst.executeQuery();
107 | if (rs.next()) {
108 | System.out.println("Login Successfull");
109 | tuserName.clear();
110 | pPassword.clear();
111 | window.setScene(scene2);
112 | wrongCredentialLbl.setText("");
113 | } else {
114 | wrongCredentialLbl.setText("Wrong Credentials Entered !!");
115 | System.out.println("Login failed Check username or Password");
116 | tuserName.clear();
117 | pPassword.clear();
118 | }
119 | pst.close();
120 | rs.close();
121 | } catch (Exception ex) {
122 | System.out.println(ex);
123 | }
124 |
125 | });
126 | grid.add(loginBtn, 1, 4);
127 | grid.setAlignment(Pos.CENTER);
128 |
129 | wrongCredentialLbl=new Label(); //for Wrong Credential Entered
130 | layout = new BorderPane();
131 | layout.setCenter(grid);
132 | layout.setBottom(wrongCredentialLbl);
133 | scene1 = new Scene(layout, 400, 400);
134 | //for Scene2'
135 | borderPane = new BorderPane();
136 | Button logout = new Button("Logout");
137 | logout.setOnAction(e -> {
138 | window.setScene(scene1);
139 | });
140 |
141 | TableColumn idColumn = new TableColumn("ID");
142 | idColumn.setMinWidth(50);
143 | idColumn.setCellValueFactory(new PropertyValueFactory<>("id"));
144 | TableColumn firstNameColumn = new TableColumn("First Name");
145 | firstNameColumn.setMinWidth(100);
146 | firstNameColumn.setCellValueFactory(new PropertyValueFactory<>("firstName"));
147 | TableColumn lastNameColumn = new TableColumn("Last Name");
148 | lastNameColumn.setMinWidth(100);
149 | lastNameColumn.setCellValueFactory(new PropertyValueFactory<>("lastName"));
150 | TableColumn nameOfSubjectColumn = new TableColumn("Subject Name");
151 | nameOfSubjectColumn.setMinWidth(100);
152 | nameOfSubjectColumn.setCellValueFactory(new PropertyValueFactory<>("nameOfSubject"));
153 | //nameOfSubject,TheoreticalOrNumerical,previousLectureReview
154 | // ,noOfStudents,EUFCalculation,date,QOD,username,password;
155 | TableColumn tonColumn = new TableColumn("Theory or Numerical");
156 | tonColumn.setMinWidth(100);
157 | tonColumn.setCellValueFactory(new PropertyValueFactory<>("TheoreticalOrNumerical"));
158 | TableColumn previousLectureColumn = new TableColumn("P R V");
159 | previousLectureColumn.setMinWidth(100);
160 | previousLectureColumn.setCellValueFactory(new PropertyValueFactory<>("previousLectureReview"));
161 | TableColumn noOfStudentsColumn = new TableColumn("No of Students ");
162 | noOfStudentsColumn.setMinWidth(100);
163 | noOfStudentsColumn.setCellValueFactory(new PropertyValueFactory<>("noOfStudents"));
164 | TableColumn EUFColumn = new TableColumn("EUF");
165 | EUFColumn.setMinWidth(50);
166 | EUFColumn.setCellValueFactory(new PropertyValueFactory<>("EUFCalculation"));
167 | TableColumn dateColumn = new TableColumn("Date");
168 | dateColumn.setMinWidth(100);
169 | dateColumn.setCellValueFactory(new PropertyValueFactory<>("Date"));
170 | TableColumn QODColumn = new TableColumn("QOD");
171 | QODColumn.setMinWidth(50);
172 | QODColumn.setCellValueFactory(new PropertyValueFactory<>("QOD"));
173 |
174 | table.getColumns().addAll(idColumn, firstNameColumn, lastNameColumn, nameOfSubjectColumn, tonColumn, previousLectureColumn,
175 | noOfStudentsColumn, dateColumn, EUFColumn, QODColumn);
176 | ScrollPane sp = new ScrollPane();
177 | sp.setContent(table);
178 | //sp.setPrefSize(850, 500);
179 | sp.setPrefViewportHeight(500);
180 | sp.setPrefViewportWidth(800);
181 | sp.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
182 | sp.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
183 | sp.setFitToHeight(true);
184 | table.setOnMouseClicked(e -> {
185 | tableMouseAction();
186 | });
187 | table.setOnKeyPressed(e -> {
188 | tableMouseAction();
189 | });
190 | //logout.
191 | borderPane.setTop(logout);
192 | borderPane.setPadding(new Insets(10));
193 | borderPane.setRight(sp);
194 | BorderPane.setMargin(sp, new Insets(0, 0, 90, 10));
195 | BorderPane.setAlignment(logout, Pos.TOP_RIGHT);
196 | borderPane.setCenter(createUser());
197 | scene2 = new Scene(borderPane, 1000, 700);
198 |
199 | //for Creating user
200 | window.setScene(scene1);
201 | window.show();
202 | }
203 |
204 | public void databaseConnector() {
205 | try {
206 | Class.forName("org.sqlite.JDBC");
207 | conn = DriverManager.getConnection("jdbc:sqlite:AdminDatabase");
208 | System.out.println("Connection Established");
209 | } catch (ClassNotFoundException | SQLException exp) {
210 | System.out.println(exp);
211 | }
212 | }
213 |
214 | public VBox createUser() {
215 | Text createUserText = new Text("Create Student ");
216 | createUserText.setFont(Font.font("Sanserif", 20));
217 | Text studentInfoText = new Text("Student Info");
218 | studentInfoText.setFont(Font.font("Sanserif", 20));
219 |
220 | /* lID=new Label("ID");
221 | lFirstName=new Label("First Name");
222 | lLastName=new Label("Last Name");
223 | lDate=new Label("Date of Submission");
224 | */
225 | tID = new TextField();
226 | tID.setPromptText("Student ID");
227 | tID.setMaxWidth(250);
228 | tFirstName = new TextField();
229 | tFirstName.setPromptText("First Name");
230 | tFirstName.setMaxWidth(250);
231 | tLastName = new TextField();
232 | tLastName.setPromptText("Last Name");
233 | tLastName.setMaxWidth(250);
234 | date = new DatePicker();
235 | date.setPromptText("Date of Submission");
236 | date.setMaxWidth(250);
237 |
238 | GridPane grid = new GridPane();
239 | grid.setVgap(10);
240 | grid.setHgap(15);
241 | // grid.setPadding(new Insets(0,10,0,0));
242 | academicInfoText = new Text("Academic Information");
243 | academicInfoText.setFont(Font.font("Arial", 20));
244 | Label subjectName = new Label("Subject Name");
245 | grid.add(subjectName, 0, 0);
246 |
247 | choiceBox.getItems().addAll("OS", "Compiler Desing", "Java");
248 | choiceBox.setTooltip(new Tooltip("Select the subject"));
249 | choiceBox.setValue("OS");
250 | choiceBox.setOnAction(e -> {
251 | subject = choiceBox.getValue();
252 |
253 | });
254 | grid.add(choiceBox, 1, 0);
255 |
256 | ltopicCovered = new Label("Topic Covered");
257 | grid.add(ltopicCovered, 0, 1);
258 | topicCovered = new TextField();
259 | topicCovered.setPromptText("Topic here");
260 | grid.add(topicCovered, 1, 1);
261 |
262 | theoretical = new RadioButton("Theoretical");
263 | numerical = new RadioButton("Numerical");
264 | theoretical.setOnAction(e -> {
265 | radioButtonLabel = theoretical.getText();
266 | });
267 | numerical.setOnAction(e -> {
268 | radioButtonLabel = numerical.getText();
269 | });
270 | grid.add(theoretical, 0, 2);
271 | grid.add(numerical, 1, 2);
272 | type.getToggles().add(theoretical);
273 | type.getToggles().add(numerical);
274 |
275 | previousLectureReview.setOnAction(e -> {
276 | if (previousLectureReview.isSelected()) {
277 | message = "yes";
278 | } else {
279 | message = "No";
280 | }
281 | });
282 | grid.add(previousLectureReview, 0, 3);
283 |
284 | noOfStudents = new Label("No Of Students");
285 | grid.add(noOfStudents, 0, 4);
286 | tNoOfStudents = new TextField();
287 | grid.add(tNoOfStudents, 1, 4);
288 |
289 | EUFCalculation = new Label("EUF Calculation");
290 | grid.add(EUFCalculation, 0, 5);
291 | tEUFCalculation = new TextField();
292 | grid.add(tEUFCalculation, 1, 5);
293 |
294 | QOD = new Label("Quality Of Delivery");
295 | grid.add(QOD, 0, 6);
296 | qualityOfDelivery.getItems().addAll("Good", "Well", "Satisfactory");
297 | qualityOfDelivery.setValue("Well");
298 | qualityOfDelivery.setOnAction(e -> {
299 | qod = qualityOfDelivery.getValue();
300 | });
301 | grid.add(qualityOfDelivery, 1, 6);
302 | saveBtn = new Button("Save");
303 | saveBtn.setOnAction(e -> {
304 | saveAction();
305 | tableLoadAction();
306 | });
307 | loadBtn = new Button("Load");
308 | loadBtn.setOnAction(e -> {
309 | tableLoadAction();
310 | });
311 | updateBtn = new Button("Update");
312 | updateBtn.setOnAction(e -> {
313 | updateAction();
314 | tableLoadAction();
315 | });
316 |
317 | deleteBtn = new Button("Delete");
318 | deleteBtn.setOnAction(e -> {
319 | deleteAction();
320 | tableLoadAction();
321 | });
322 | Button clearFieldBtn =new Button("New ");
323 | clearFieldBtn.setOnAction(e->{
324 | clearFields();
325 | });
326 | VBox vBox = new VBox(10);
327 | vBox.setPadding(new Insets(0, 0, 0, 20));
328 | vBox.getChildren().addAll(createUserText, studentInfoText, tID, tFirstName, tLastName, date,
329 | academicInfoText, grid, saveBtn, loadBtn, updateBtn, deleteBtn,clearFieldBtn);
330 | return vBox;
331 | }
332 |
333 | public void saveAction() {
334 | // int id=);
335 | try {//TextField tID,tFirstName,tLastName,tNoOfStudents,tEUFCalculation;
336 | String query = "Insert into Admin (StudentId,FirstName,LastName,NameOfSubject,TheoreticalOrNumerical,"
337 | + "previousLectureReview,NoOfStudents,EUFCalculation,date,QualityOfDelivery,username) Values (?,?,?,?,?,?,?,?,?,?,?)";
338 | pst = conn.prepareStatement(query);
339 | pst.setInt(1, Integer.parseInt(tID.getText()));
340 | pst.setString(2, tFirstName.getText());
341 | pst.setString(3, tLastName.getText());
342 | pst.setString(4, subject);
343 | pst.setString(5, radioButtonLabel);
344 | pst.setString(6, message);
345 | pst.setInt(7, Integer.parseInt(tNoOfStudents.getText()));
346 | pst.setDouble(8, Double.parseDouble(tEUFCalculation.getText()));
347 | pst.setString(9, date.getEditor().getText());
348 | pst.setString(10, qod);
349 | pst.execute();
350 | pst.close();
351 | rs.close();
352 | System.out.println("Saved");
353 | tableLoadAction();
354 | clearFields();
355 | } catch (SQLException | NumberFormatException ex) {
356 | System.err.println(ex);
357 | }
358 | }
359 |
360 | public void clearFields() {
361 | //TextField tID,tFirstName,tLastName,tNoOfStudents,tEUFCalculatio
362 | tID.clear();
363 | tFirstName.clear();
364 | tLastName.clear();
365 | tNoOfStudents.clear();
366 | topicCovered.clear();
367 | tEUFCalculation.clear();
368 | date.getEditor().setText(null);
369 | qualityOfDelivery.setValue(null);
370 | previousLectureReview.setSelected(false);
371 | theoretical.setSelected(false);
372 | numerical.setSelected(false);
373 | choiceBox.setValue(null);
374 | }
375 |
376 | public void tableLoadAction() {
377 | data.clear();
378 | try {
379 | String query = "select * from Admin";
380 | pst = conn.prepareStatement(query);
381 | rs = pst.executeQuery();
382 | while (rs.next()) {//StudentId,FirstName,LastName,TheoreticalOrNumerical,"
383 | //+ "previousLectureReview,NoOfStudents,EUFCalculation,date,QualityOfDelivery,usernam
384 | data.add(new Student(rs.getString("StudentId"),
385 | rs.getString("FirstName"),
386 | rs.getString("LastName"),
387 | rs.getString("NameOfSubject"),
388 | rs.getString("TheoreticalOrNumerical"),
389 | rs.getString("previousLectureReview"),
390 | rs.getString("NoOfStudents"),
391 | rs.getString("EUFCalculation"),
392 | rs.getString("date"),
393 | rs.getString("QualityOfDelivery"),
394 | rs.getString("username"),
395 | rs.getString("password")
396 | ));
397 | table.setItems(data);
398 | }
399 | pst.close();
400 | rs.close();
401 | } catch (SQLException ex) {
402 | Logger.getLogger(StudentRegistration.class.getName()).log(Level.SEVERE, null, ex);
403 | }
404 |
405 | }
406 |
407 | public void tableMouseAction() {
408 | try {
409 | clearFields();
410 | //StudentId,FirstName,LastName,TheoreticalOrNumerical,"
411 | //+ "previousLectureReview,NoOfStudents,EUFCalculation,date,QualityOfDelivery,username
412 |
413 | Student student = (Student) table.getSelectionModel().getSelectedItem();
414 | String query = "Select * from Admin where StudentId=?";
415 | pst = conn.prepareStatement(query);
416 | pst.setString(1, student.getId());
417 | rs = pst.executeQuery();
418 | while (rs.next()) {
419 | tID.setText(rs.getString("StudentId"));
420 | tFirstName.setText(rs.getString("FirstName"));
421 | tLastName.setText(rs.getString("LastName"));
422 | tNoOfStudents.setText(rs.getString("NoOfStudents"));
423 | tEUFCalculation.setText(rs.getString("EUFCalculation"));
424 | date.getEditor().setText(rs.getString("date"));
425 | tuserName.setText(rs.getString("username"));
426 | qualityOfDelivery.setValue(rs.getString("QualityOfDelivery"));
427 | if (null != rs.getString("TheoreticalOrNumerical")) {
428 | switch (rs.getString("TheoreticalOrNumerical")) {
429 | case "Theoretical":
430 | theoretical.setSelected(true);
431 | break;
432 | case "Numerical":
433 | numerical.setSelected(true);
434 | break;
435 | default:
436 | theoretical.setSelected(false);
437 | numerical.setSelected(false);
438 | break;
439 | }
440 | } else {
441 | theoretical.setSelected(false);
442 | numerical.setSelected(false);
443 | }
444 | if (null != rs.getString("PreviousLectureReview")) {
445 | switch (rs.getString("PreviousLectureReview")) {
446 | case "yes":
447 | previousLectureReview.setSelected(true);
448 | break;
449 | case "no":
450 | previousLectureReview.setSelected(false);
451 | break;
452 | }
453 | } else {
454 | previousLectureReview.setSelected(false);
455 | }
456 | choiceBox.setValue(rs.getString("NameOfSubject"));
457 | }
458 |
459 | pst.close();
460 | rs.close();
461 | } catch (SQLException ex) {
462 | Logger.getLogger(StudentRegistration.class.getName()).log(Level.SEVERE, null, ex);
463 | }
464 | }
465 |
466 | public void updateAction() {
467 | try {//
468 | //StudentId,FirstName,LastName,TheoreticalOrNumerical,"
469 | //+ "previousLectureReview,NoOfStudents,EUFCalculation,date,QualityOfDelivery,usernam
470 | String query = "update Admin set StudentId=?, FirstName=?, LastName=?,NameOfSubject=?, TheoreticalOrNumerical=?,"
471 | + "previousLectureReview=?, NoOfStudents=?, EUFCalculation=?, date=?, QualityOfDelivery=?,"
472 | + "username=?, password=? where StudentID= '" + tID.getText() + "'";
473 | pst = conn.prepareStatement(query);
474 | pst.setString(1, tID.getText());
475 | pst.setString(2, tFirstName.getText());
476 | pst.setString(3, tLastName.getText());
477 | pst.setString(4, choiceBox.getValue());
478 | pst.setString(5, radioButtonLabel);
479 | pst.setString(6, message);
480 | pst.setString(7, tNoOfStudents.getText());
481 | pst.setString(8, tEUFCalculation.getText());
482 | pst.setString(9, date.getEditor().getText());
483 | pst.setString(10, qualityOfDelivery.getValue());
484 | // pst.setString(9, );
485 | clearFields();
486 | pst.execute();
487 | Alert alert = new Alert(AlertType.INFORMATION);
488 | alert.setTitle("Success");
489 | alert.setHeaderText("Updated");
490 | alert.setContentText("User Updated Successfully");
491 | alert.showAndWait();
492 | tableLoadAction();
493 |
494 | } catch (SQLException ex) {
495 | Logger.getLogger(StudentRegistration.class.getName()).log(Level.SEVERE, null, ex);
496 | }
497 | }
498 |
499 | public void deleteAction() {
500 | String query = "Delete from Admin Where StudentId=?";
501 | try {
502 | pst = conn.prepareStatement(query);
503 | pst.setString(1, tID.getText());
504 | pst.executeUpdate();
505 | System.out.println("Delete Successful");
506 | pst.close();
507 | } catch (SQLException ex) {
508 | ex.printStackTrace();
509 | }
510 |
511 | }
512 | }
513 |
--------------------------------------------------------------------------------
/StudentRegistration(Javafx)/src/school.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashmeet4293/Student-Registration-system-in-java-using-javafx/53dad89754885561353e2156290af9ae668449dd/StudentRegistration(Javafx)/src/school.png
--------------------------------------------------------------------------------