├── .idea ├── .gitignore ├── vcs.xml ├── modules.xml ├── encodings.xml ├── libraries │ ├── mysql_connector.xml │ ├── Maven__eu_hansolo_tilesfx_11_48.xml │ ├── Maven__org_openjfx_javafx_web_17_0_1.xml │ ├── Maven__net_synedra_validatorfx_0_1_13.xml │ ├── Maven__org_openjfx_javafx_base_17_0_1.xml │ ├── Maven__org_openjfx_javafx_fxml_17_0_1.xml │ ├── Maven__org_opentest4j_opentest4j_1_2_0.xml │ ├── Maven__org_controlsfx_controlsfx_11_1_0.xml │ ├── Maven__org_openjfx_javafx_web_win_17_0_1.xml │ ├── Maven__org_openjfx_javafx_base_win_17_0_1.xml │ ├── Maven__org_openjfx_javafx_fxml_win_17_0_1.xml │ ├── Maven__org_openjfx_javafx_media_17_0_1.xml │ ├── Maven__org_openjfx_javafx_media_win_17_0_1.xml │ ├── Maven__org_openjfx_javafx_controls_17_0_1.xml │ ├── Maven__org_openjfx_javafx_graphics_17_0_1.xml │ ├── Maven__com_dlsc_formsfx_formsfx_core_11_3_2.xml │ ├── Maven__org_apiguardian_apiguardian_api_1_1_2.xml │ ├── Maven__org_openjfx_javafx_controls_win_17_0_1.xml │ ├── Maven__org_openjfx_javafx_graphics_win_17_0_1.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_api_5_8_1.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_engine_5_8_1.xml │ ├── Maven__org_junit_platform_junit_platform_engine_1_8_1.xml │ └── Maven__org_junit_platform_junit_platform_commons_1_8_1.xml ├── misc.xml ├── compiler.xml ├── jarRepositories.xml └── uiDesigner.xml ├── images ├── logo.png ├── Screenshot.png ├── Screenshot1.png ├── Screenshot2.png ├── Screenshot3.png ├── Screenshot4.png ├── Screenshot5.png └── Screenshot6.png ├── target └── classes │ ├── assets │ ├── logo.png │ ├── logo2.png │ └── web.png │ ├── module-info.class │ ├── jre │ └── mysql-connector.jar │ └── com │ └── bikram │ ├── images │ ├── jimmy-fallon.png │ ├── Bikram-Parajuli.png │ ├── icons8_Box_32px.png │ ├── icons8_Home_32px.png │ ├── icons8_Person_32px.png │ ├── icons8_Search_52px.png │ ├── icons8_Slider__32px.png │ ├── icons8_Sign_Out_32px.png │ ├── icons8_Xbox_Menu_32px.png │ ├── icons8_Meanpath_64px_2.png │ ├── icons8_GPS_Antenna_64px_1.png │ └── icons8_Open_Envelope_32px.png │ └── javafinal │ ├── Application.class │ ├── AppController.class │ ├── Application$1.class │ ├── HomeController.class │ ├── Models │ ├── Command.class │ ├── Human.class │ ├── Users.class │ ├── Students.class │ ├── AWTExample.class │ ├── AppConstants.class │ ├── LoginResult.class │ ├── SocketServer.class │ ├── SwingExample.class │ ├── GradeWiseData.class │ ├── SocketServer$1.class │ ├── Commands │ │ ├── HelpCmd.class │ │ └── StudentCmd.class │ ├── CommandsHandler.class │ ├── NumberTextField.class │ └── SubjectWiseData.class │ ├── LoginController.class │ ├── SignupController.class │ ├── StudentItemController.class │ ├── dbconnections │ └── Dbconnection.class │ ├── app-view.fxml │ ├── Student-item.fxml │ ├── hello-view.fxml │ ├── style.css │ ├── signup-view.fxml │ └── Home-view.fxml ├── src └── main │ ├── resources │ ├── assets │ │ ├── web.png │ │ ├── logo.png │ │ └── logo2.png │ ├── jre │ │ └── mysql-connector.jar │ └── com │ │ └── bikram │ │ ├── images │ │ ├── jimmy-fallon.png │ │ ├── Bikram-Parajuli.png │ │ ├── icons8_Box_32px.png │ │ ├── icons8_Home_32px.png │ │ ├── icons8_Person_32px.png │ │ ├── icons8_Search_52px.png │ │ ├── icons8_Sign_Out_32px.png │ │ ├── icons8_Slider__32px.png │ │ ├── icons8_Meanpath_64px_2.png │ │ ├── icons8_Xbox_Menu_32px.png │ │ ├── icons8_GPS_Antenna_64px_1.png │ │ └── icons8_Open_Envelope_32px.png │ │ └── javafinal │ │ ├── app-view.fxml │ │ ├── Student-item.fxml │ │ ├── hello-view.fxml │ │ ├── style.css │ │ ├── signup-view.fxml │ │ └── Home-view.fxml │ └── java │ ├── com │ └── bikram │ │ └── javafinal │ │ ├── Models │ │ ├── Command.java │ │ ├── Human.java │ │ ├── Commands │ │ │ ├── HelpCmd.java │ │ │ └── StudentCmd.java │ │ ├── NumberTextField.java │ │ ├── LoginResult.java │ │ ├── Users.java │ │ ├── CommandsHandler.java │ │ ├── AppConstants.java │ │ ├── SwingExample.java │ │ ├── SubjectWiseData.java │ │ ├── GradeWiseData.java │ │ ├── Students.java │ │ ├── SocketServer.java │ │ └── AWTExample.java │ │ ├── AppController.java │ │ ├── StudentItemController.java │ │ ├── Application.java │ │ ├── LoginController.java │ │ ├── SignupController.java │ │ ├── dbconnections │ │ └── Dbconnection.java │ │ └── HomeController.java │ └── module-info.java ├── JavaFinal.iml ├── pom.xml └── readme.md /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/images/logo.png -------------------------------------------------------------------------------- /images/Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/images/Screenshot.png -------------------------------------------------------------------------------- /images/Screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/images/Screenshot1.png -------------------------------------------------------------------------------- /images/Screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/images/Screenshot2.png -------------------------------------------------------------------------------- /images/Screenshot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/images/Screenshot3.png -------------------------------------------------------------------------------- /images/Screenshot4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/images/Screenshot4.png -------------------------------------------------------------------------------- /images/Screenshot5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/images/Screenshot5.png -------------------------------------------------------------------------------- /images/Screenshot6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/images/Screenshot6.png -------------------------------------------------------------------------------- /target/classes/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/assets/logo.png -------------------------------------------------------------------------------- /target/classes/assets/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/assets/logo2.png -------------------------------------------------------------------------------- /target/classes/assets/web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/assets/web.png -------------------------------------------------------------------------------- /src/main/resources/assets/web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/assets/web.png -------------------------------------------------------------------------------- /target/classes/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/module-info.class -------------------------------------------------------------------------------- /src/main/resources/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/assets/logo.png -------------------------------------------------------------------------------- /src/main/resources/assets/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/assets/logo2.png -------------------------------------------------------------------------------- /target/classes/jre/mysql-connector.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/jre/mysql-connector.jar -------------------------------------------------------------------------------- /src/main/resources/jre/mysql-connector.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/jre/mysql-connector.jar -------------------------------------------------------------------------------- /target/classes/com/bikram/images/jimmy-fallon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/jimmy-fallon.png -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/jimmy-fallon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/jimmy-fallon.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/Bikram-Parajuli.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/Bikram-Parajuli.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_Box_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_Box_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_Home_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_Home_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Application.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Application.class -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/Bikram-Parajuli.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/Bikram-Parajuli.png -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_Box_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_Box_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_Person_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_Person_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_Search_52px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_Search_52px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_Slider__32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_Slider__32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/AppController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/AppController.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Application$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Application$1.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/HomeController.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/Command.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/Command.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/Human.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/Human.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/Users.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/Users.class -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/Command.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | public interface Command { 4 | static void run(String[] arg){}; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_Home_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_Home_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_Sign_Out_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_Sign_Out_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_Xbox_Menu_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_Xbox_Menu_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/LoginController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/LoginController.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/Students.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/Students.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/SignupController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/SignupController.class -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_Person_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_Person_32px.png -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_Search_52px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_Search_52px.png -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_Sign_Out_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_Sign_Out_32px.png -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_Slider__32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_Slider__32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_Meanpath_64px_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_Meanpath_64px_2.png -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/AWTExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/AWTExample.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/AppConstants.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/AppConstants.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/LoginResult.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/LoginResult.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/SocketServer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/SocketServer.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/SwingExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/SwingExample.class -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_Meanpath_64px_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_Meanpath_64px_2.png -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_Xbox_Menu_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_Xbox_Menu_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_GPS_Antenna_64px_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_GPS_Antenna_64px_1.png -------------------------------------------------------------------------------- /target/classes/com/bikram/images/icons8_Open_Envelope_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/images/icons8_Open_Envelope_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/GradeWiseData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/GradeWiseData.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/SocketServer$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/SocketServer$1.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/StudentItemController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/StudentItemController.class -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_GPS_Antenna_64px_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_GPS_Antenna_64px_1.png -------------------------------------------------------------------------------- /src/main/resources/com/bikram/images/icons8_Open_Envelope_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/src/main/resources/com/bikram/images/icons8_Open_Envelope_32px.png -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/Commands/HelpCmd.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/Commands/HelpCmd.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/CommandsHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/CommandsHandler.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/NumberTextField.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/NumberTextField.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/SubjectWiseData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/SubjectWiseData.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Models/Commands/StudentCmd.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/Models/Commands/StudentCmd.class -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/dbconnections/Dbconnection.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Parajulibkrm/Java-labwork/HEAD/target/classes/com/bikram/javafinal/dbconnections/Dbconnection.class -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/Human.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | abstract class Human { 4 | static String school = "Kakshya School"; 5 | protected String name; 6 | 7 | public String getName() { 8 | return name; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/Commands/HelpCmd.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models.Commands; 2 | 3 | import com.bikram.javafinal.Models.Command; 4 | 5 | public class HelpCmd implements Command { 6 | public static void run(String[] arg) { 7 | 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /.idea/libraries/mysql_connector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/app-view.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /src/main/resources/com/bikram/javafinal/app-view.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__eu_hansolo_tilesfx_11_48.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | module com.bikram.javafinal { 2 | requires javafx.controls; 3 | requires javafx.fxml; 4 | requires javafx.web; 5 | requires java.sql; 6 | requires org.controlsfx.controls; 7 | requires com.dlsc.formsfx; 8 | requires validatorfx; 9 | requires eu.hansolo.tilesfx; 10 | requires mysql.connector; 11 | requires java.desktop; 12 | opens com.bikram.javafinal to javafx.fxml; 13 | exports com.bikram.javafinal; 14 | exports com.bikram.javafinal.Models; 15 | opens com.bikram.javafinal.Models to javafx.fxml; 16 | } -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_web_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_synedra_validatorfx_0_1_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_base_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_fxml_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_controlsfx_controlsfx_11_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_web_win_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_base_win_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_fxml_win_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_media_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/AppController.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal; 2 | 3 | import com.bikram.javafinal.Models.AppConstants; 4 | import javafx.fxml.FXML; 5 | import javafx.fxml.Initializable; 6 | import javafx.scene.control.Label; 7 | 8 | import java.net.URL; 9 | import java.util.ResourceBundle; 10 | 11 | public class AppController implements Initializable { 12 | @FXML 13 | private Label welcomeMessage; 14 | 15 | @Override 16 | public void initialize(URL url, ResourceBundle resourceBundle) { 17 | welcomeMessage.setText("Welcome "+ AppConstants.getLoggedInUser() + "!"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_media_win_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_controls_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_graphics_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_dlsc_formsfx_formsfx_core_11_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_controls_win_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_openjfx_javafx_graphics_win_17_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/NumberTextField.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | import javafx.scene.control.TextField; 4 | 5 | public class NumberTextField extends TextField 6 | { 7 | 8 | @Override 9 | public void replaceText(int start, int end, String text) 10 | { 11 | if (validate(text)) 12 | { 13 | super.replaceText(start, end, text); 14 | } 15 | } 16 | 17 | @Override 18 | public void replaceSelection(String text) 19 | { 20 | if (validate(text)) 21 | { 22 | super.replaceSelection(text); 23 | } 24 | } 25 | 26 | private boolean validate(String text) 27 | { 28 | return text.matches("[0-9]*"); 29 | } 30 | } -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/LoginResult.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | public class LoginResult { 4 | private boolean loggedIn = false; 5 | private String username; 6 | 7 | public LoginResult(boolean loggedIn, String username) { 8 | this.loggedIn = loggedIn; 9 | this.username = username; 10 | } 11 | 12 | public LoginResult(boolean loggedIn) { 13 | this.loggedIn = loggedIn; 14 | } 15 | 16 | public boolean isLoggedIn() { 17 | return loggedIn; 18 | } 19 | 20 | public void setLoggedIn(boolean loggedIn) { 21 | this.loggedIn = loggedIn; 22 | } 23 | 24 | public String getUsername() { 25 | return username; 26 | } 27 | 28 | public void setUsername(String username) { 29 | this.username = username; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/Users.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | public class Users extends Human { 4 | private String username; 5 | private String password; 6 | 7 | public Users(String name, String username, String password) { 8 | this.name = name; 9 | this.username = username; 10 | this.password = password; 11 | } 12 | 13 | public String getName() { 14 | return name; 15 | } 16 | 17 | public void setName(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getUsername() { 22 | return username; 23 | } 24 | 25 | public void setUsername(String username) { 26 | this.username = username; 27 | } 28 | 29 | public String getPassword() { 30 | return password; 31 | } 32 | 33 | public void setPassword(String password) { 34 | this.password = password; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/CommandsHandler.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | import com.bikram.javafinal.Models.Commands.StudentCmd; 4 | 5 | import java.io.DataInputStream; 6 | import java.io.DataOutputStream; 7 | import java.io.IOException; 8 | import java.net.ServerSocket; 9 | import java.net.Socket; 10 | import java.util.Scanner; 11 | 12 | public class CommandsHandler { 13 | public static void handleCmd(String s) throws IOException { 14 | String error = "All available Commands are: \n cls \n help \n student"; 15 | String[] cmd = s.split(" "); 16 | switch (cmd[0]) { 17 | case "chat": 18 | new SocketServer(); 19 | case "cls": 20 | System.out.print("\033[H\033[2J"); 21 | System.out.flush(); 22 | break; 23 | case "help": 24 | System.out.println(error); 25 | break; 26 | case "student": 27 | StudentCmd.run(cmd); 28 | break; 29 | default: 30 | System.out.println("Invalid command ! \n" + error); 31 | break; 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/AppConstants.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | import javafx.stage.Stage; 4 | 5 | public class AppConstants { 6 | public static String loggedInUser = null; 7 | public static String signInMessage = null; 8 | public static String signUpMessage = null; 9 | public static Stage st = null; 10 | 11 | public static String getLoggedInUser() { 12 | return loggedInUser; 13 | } 14 | 15 | public static void setLoggedInUser(String loggedInUser) { 16 | AppConstants.loggedInUser = loggedInUser; 17 | } 18 | 19 | public static String getSignInMessage() { 20 | return signInMessage; 21 | } 22 | 23 | public static void setSignInMessage(String signInMessage) { 24 | AppConstants.signInMessage = signInMessage; 25 | } 26 | 27 | public static String getSignUpMessage() { 28 | return signUpMessage; 29 | } 30 | 31 | public static void setSignUpMessage(String signUpMessage) { 32 | AppConstants.signUpMessage = signUpMessage; 33 | } 34 | 35 | public static Stage getSt() { 36 | return st; 37 | } 38 | 39 | public static void setSt(Stage st) { 40 | AppConstants.st = st; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/SwingExample.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | import javax.swing.*; 4 | import java.awt.event.ActionEvent; 5 | import java.awt.event.ActionListener; 6 | 7 | public class SwingExample extends JFrame implements ActionListener { 8 | JButton jb1; 9 | JTextField jt1, jt2; 10 | JLabel lbl; 11 | 12 | public SwingExample() { 13 | 14 | jt1 = new JTextField(); 15 | jt1.setBounds(90, 50, 150, 30); 16 | add(jt1); 17 | 18 | jt2 = new JTextField(); 19 | jt2.setBounds(90, 80, 150, 30); 20 | add(jt2); 21 | 22 | lbl = new JLabel("Result :"); 23 | lbl.setBounds(90, 140, 150, 30); 24 | add(lbl); 25 | 26 | jb1 = new JButton("+"); 27 | jb1.setBounds(90, 200, 100, 30); 28 | add(jb1); 29 | 30 | jb1.addActionListener(this); 31 | 32 | setLayout(null); 33 | setSize(600, 400); 34 | setVisible(true); 35 | 36 | } 37 | 38 | public void actionPerformed(ActionEvent e) { 39 | 40 | int a = Integer.parseInt(jt1.getText()); 41 | int b = Integer.parseInt(jt2.getText()); 42 | int c = 0; 43 | 44 | if (e.getSource().equals(jb1)) { 45 | c = a + b; 46 | lbl.setText(String.valueOf(c)); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/SubjectWiseData.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | public class SubjectWiseData { 4 | private int maths; 5 | private int science; 6 | private int english; 7 | private int social; 8 | private int nepali; 9 | 10 | public SubjectWiseData(int maths, int science, int social, int english , int nepali) { 11 | this.maths = maths; 12 | this.science = science; 13 | this.english = english; 14 | this.social = social; 15 | this.nepali = nepali; 16 | } 17 | 18 | public int getMaths() { 19 | return maths; 20 | } 21 | 22 | public void setMaths(int maths) { 23 | this.maths = maths; 24 | } 25 | 26 | public int getScience() { 27 | return science; 28 | } 29 | 30 | public void setScience(int science) { 31 | this.science = science; 32 | } 33 | 34 | public int getEnglish() { 35 | return english; 36 | } 37 | 38 | public void setEnglish(int english) { 39 | this.english = english; 40 | } 41 | 42 | public int getSocial() { 43 | return social; 44 | } 45 | 46 | public void setSocial(int social) { 47 | this.social = social; 48 | } 49 | 50 | public int getNepali() { 51 | return nepali; 52 | } 53 | 54 | public void setNepali(int nepali) { 55 | this.nepali = nepali; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/StudentItemController.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal; 2 | 3 | import com.bikram.javafinal.Models.Students; 4 | import javafx.fxml.FXML; 5 | import javafx.scene.control.Button; 6 | import javafx.scene.control.Label; 7 | 8 | 9 | public class StudentItemController { 10 | @FXML 11 | private Label lroll; 12 | 13 | @FXML 14 | private Label lname; 15 | 16 | @FXML 17 | private Label lscience; 18 | 19 | @FXML 20 | private Label lmaths; 21 | 22 | @FXML 23 | private Label lsocial; 24 | 25 | @FXML 26 | private Label lenglish; 27 | 28 | 29 | @FXML 30 | private Label lnepali; 31 | 32 | @FXML 33 | private Button lResult; 34 | 35 | public void setData(Students s){ 36 | lscience.setText(Integer.toString(s.getScience())); 37 | lname.setText(s.getName()); 38 | lmaths.setText(Integer.toString(s.getMaths())); 39 | lenglish.setText(Integer.toString(s.getEnglish())); 40 | lnepali.setText(Integer.toString(s.getNepali())); 41 | lroll.setText(Integer.toString(s.getRoll())); 42 | lsocial.setText(Integer.toString(s.getSocial())); 43 | lResult.setText(s.isPass()?"Pass":"Fail"); 44 | lResult.setStyle(s.isPass()?"-fx-border-color: #2A73FF; -fx-border-radius: 20; -fx-background-color: transparent;":"-fx-border-color: red; -fx-border-radius: 20; -fx-background-color: transparent;"); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/Commands/StudentCmd.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models.Commands; 2 | 3 | import com.bikram.javafinal.Models.Command; 4 | import com.bikram.javafinal.Models.Students; 5 | import com.bikram.javafinal.dbconnections.Dbconnection; 6 | import javafx.collections.ObservableList; 7 | 8 | public class StudentCmd implements Command { 9 | public static void run(String[] arg) { 10 | String invalid = "Invalid Syntax! \n The correct syntax are: \n student i [roll] \n student list"; 11 | if (arg.length <2){ 12 | System.out.println(invalid); 13 | return; 14 | } 15 | if(arg[1].equals("i")){ 16 | try { 17 | int index = Integer.parseInt(arg[2]); 18 | Students res = Dbconnection.getStudent(index); 19 | res.printData(); 20 | }catch (Exception e){ 21 | System.out.println("Couldn't fetch student information. Please check if valid roll number is provided."); 22 | } 23 | } else if(arg[1].equals("list")){ 24 | System.out.println("Gives list of all students"); 25 | try { 26 | ObservableList studentList = Dbconnection.getAllStudents(); 27 | for(int i = 0; i < studentList.size(); i++){ 28 | Students s = studentList.get(i); 29 | s.printData(); 30 | } 31 | }catch (Exception e){ 32 | System.out.println("Unable to fetch student informations"); 33 | } 34 | } else { 35 | System.out.println(invalid); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/GradeWiseData.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | public class GradeWiseData { 4 | private int Ap; 5 | private int A; 6 | private int Bp; 7 | private int B; 8 | private int Cp; 9 | private int C; 10 | private int E; 11 | private int D; 12 | private int N; 13 | 14 | public GradeWiseData(int ap, int a, int bp, int b, int cp, int c, int d, int e, int n) { 15 | Ap = ap; 16 | A = a; 17 | Bp = bp; 18 | B = b; 19 | Cp = cp; 20 | C = c; 21 | E = e; 22 | D = d; 23 | N = n; 24 | } 25 | 26 | public int getAp() { 27 | return Ap; 28 | } 29 | 30 | public void setAp(int ap) { 31 | Ap = ap; 32 | } 33 | 34 | public int getA() { 35 | return A; 36 | } 37 | 38 | public void setA(int a) { 39 | A = a; 40 | } 41 | 42 | public int getBp() { 43 | return Bp; 44 | } 45 | 46 | public void setBp(int bp) { 47 | Bp = bp; 48 | } 49 | 50 | public int getB() { 51 | return B; 52 | } 53 | 54 | public void setB(int b) { 55 | B = b; 56 | } 57 | 58 | public int getCp() { 59 | return Cp; 60 | } 61 | 62 | public void setCp(int cp) { 63 | Cp = cp; 64 | } 65 | 66 | public int getC() { 67 | return C; 68 | } 69 | 70 | public void setC(int c) { 71 | C = c; 72 | } 73 | 74 | public int getE() { 75 | return E; 76 | } 77 | 78 | public void setE(int e) { 79 | E = e; 80 | } 81 | 82 | public int getD() { 83 | return D; 84 | } 85 | 86 | public void setD(int d) { 87 | D = d; 88 | } 89 | 90 | public int getN() { 91 | return N; 92 | } 93 | 94 | public void setF(int f) { 95 | N = f; 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/Students.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | public class Students extends Human { 4 | private final int roll; 5 | private int maths; 6 | private int science; 7 | private int social; 8 | private int english; 9 | private int nepali; 10 | 11 | public Students(int roll, String name, int maths, int science, int social, int english, int nepali) { 12 | this.name = name; 13 | this.roll = roll; 14 | this.maths = maths; 15 | this.science = science; 16 | this.social = social; 17 | this.english = english; 18 | this.nepali = nepali; 19 | } 20 | 21 | public Students(int roll, String name) { 22 | this.name = name; 23 | this.roll = roll; 24 | } 25 | 26 | public int getRoll() { 27 | return roll; 28 | } 29 | 30 | public int getMaths() { 31 | return maths; 32 | } 33 | 34 | public void setMaths(int maths) { 35 | this.maths = maths; 36 | } 37 | 38 | public int getScience() { 39 | return science; 40 | } 41 | 42 | public void setScience(int science) { 43 | this.science = science; 44 | } 45 | 46 | public int getSocial() { 47 | return social; 48 | } 49 | 50 | public void setSocial(int social) { 51 | this.social = social; 52 | } 53 | 54 | public int getEnglish() { 55 | return english; 56 | } 57 | 58 | public void setEnglish(int english) { 59 | this.english = english; 60 | } 61 | 62 | public int getNepali() { 63 | return nepali; 64 | } 65 | 66 | public void setNepali(int nepali) { 67 | this.nepali = nepali; 68 | } 69 | 70 | 71 | public void printData(){ 72 | System.out.println(roll + ". \t" + name + "\t"+ maths + "\t" + science + "\t" + social + "\t" + english + "\t" + nepali); 73 | } 74 | public boolean isPass() { 75 | return maths >= 40 && science >= 40 && social >= 40 && english >= 40 && nepali >= 40; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/SocketServer.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | import java.io.DataInputStream; 4 | import java.io.DataOutputStream; 5 | import java.io.IOException; 6 | import java.net.ServerSocket; 7 | import java.net.Socket; 8 | import java.util.Scanner; 9 | 10 | public class SocketServer { 11 | SocketServer(){ 12 | ServerSocket ss = null; 13 | try { 14 | ss = new ServerSocket(6666); 15 | System.out.println("Socket server started at port 6666"); 16 | Socket soc = ss.accept(); 17 | boolean shouldContinue = true; 18 | DataOutputStream dout = new DataOutputStream(soc.getOutputStream()); 19 | Scanner sc = new Scanner(System.in); 20 | //create new Thread 21 | Thread t = new Thread(new Runnable() { 22 | @Override 23 | public void run() { 24 | while (true) { 25 | String message = null; 26 | 27 | try { 28 | DataInputStream dis = new DataInputStream(soc.getInputStream()); 29 | message = (String) dis.readUTF(); 30 | System.out.println(message); 31 | } catch (IOException e) { 32 | return; 33 | 34 | } 35 | 36 | } 37 | } 38 | }); 39 | t.start(); 40 | while (shouldContinue) { 41 | String messageToSend = sc.nextLine(); 42 | if (messageToSend.equals("exit")) { 43 | shouldContinue = false; 44 | t.interrupt(); 45 | } 46 | dout.writeUTF("Bikram: "+messageToSend); 47 | dout.flush(); 48 | } 49 | dout.close(); 50 | ss.close(); 51 | } catch (IOException e) { 52 | System.out.println("Error with creating socket server. " + e.getMessage()); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Application.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal; 2 | 3 | import com.bikram.javafinal.Models.AppConstants; 4 | import com.bikram.javafinal.Models.CommandsHandler; 5 | import com.bikram.javafinal.dbconnections.Dbconnection; 6 | import javafx.fxml.FXMLLoader; 7 | import javafx.scene.Scene; 8 | import javafx.scene.image.Image; 9 | import javafx.stage.Stage; 10 | import java.io.IOException; 11 | import java.util.Scanner; 12 | 13 | public class Application extends javafx.application.Application { 14 | Dbconnection db = new Dbconnection(); 15 | @Override 16 | public void start(Stage stage) throws IOException { 17 | AppConstants.setSt(stage); 18 | // stage.getIcons().add(new Image("../../../../resources/assets/logo.png")); 19 | stage.getIcons().add(new Image("file:G:\\WorkingDirec\\JavaFinal\\src\\main\\resources\\assets\\logo.png")); 20 | FXMLLoader fxmlLoader = new FXMLLoader(Application.class.getResource("hello-view.fxml")); 21 | Scene scene = new Scene(fxmlLoader.load()); 22 | stage.setTitle("Kakshya RMS"); 23 | stage.setScene(scene); 24 | stage.show(); 25 | stage.setResizable(false); 26 | try { 27 | db.connect(); 28 | } catch (Exception e) { 29 | System.out.println("Error with connecting to db. " + e.getMessage()); 30 | } 31 | new Thread(new Runnable() { 32 | @Override 33 | public void run() { 34 | Scanner myObj = new Scanner(System.in); 35 | while(true){ 36 | System.out.println("\033[0;35m" +"Enter command:" + "\033[0m"); 37 | String cmd = myObj.nextLine(); 38 | if(cmd.equals("exit")){ 39 | System.exit(0); 40 | } 41 | 42 | try { 43 | CommandsHandler.handleCmd(cmd); 44 | } catch (IOException e) { 45 | System.out.println("Error with handling command. " + e.getMessage()); 46 | } 47 | } 48 | } 49 | }).start(); 50 | } 51 | 52 | public static void main(String[] args) { 53 | launch(); 54 | } 55 | } -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/LoginController.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal; 2 | 3 | import com.bikram.javafinal.Models.AppConstants; 4 | import com.bikram.javafinal.Models.LoginResult; 5 | import com.bikram.javafinal.dbconnections.Dbconnection; 6 | import javafx.event.ActionEvent; 7 | import javafx.fxml.FXML; 8 | import javafx.fxml.FXMLLoader; 9 | import javafx.fxml.Initializable; 10 | import javafx.scene.Node; 11 | import javafx.scene.Scene; 12 | import javafx.scene.control.Label; 13 | import javafx.scene.control.PasswordField; 14 | import javafx.scene.control.TextArea; 15 | import javafx.scene.control.TextField; 16 | import javafx.stage.Stage; 17 | 18 | import java.io.IOException; 19 | import java.net.URL; 20 | import java.util.ResourceBundle; 21 | 22 | public class LoginController implements Initializable { 23 | @FXML 24 | private Label signinMessage; 25 | @FXML 26 | private TextField username; 27 | @FXML 28 | private PasswordField password; 29 | 30 | @FXML 31 | protected void onlogin(ActionEvent e) throws IOException { 32 | String un = username.getText(); 33 | String pw = password.getText(); 34 | LoginResult isLoggedIn = Dbconnection.login(un,pw); 35 | if (isLoggedIn.isLoggedIn()){ 36 | AppConstants.setLoggedInUser(isLoggedIn.getUsername()); 37 | FXMLLoader fxmlLoader = new FXMLLoader(Application.class.getResource("Home-view.fxml")); 38 | Scene signupScene = new Scene(fxmlLoader.load()); 39 | Scene oldSignin = ((Node)e.getSource()).getScene(); 40 | Stage stage = (Stage) (oldSignin.getWindow()); 41 | stage.setScene(signupScene); 42 | } else { 43 | signinMessage.setText("Login Failed"); 44 | System.out.println("Login failed"); 45 | } 46 | } 47 | 48 | @FXML 49 | protected void onSignupClick( ActionEvent e) throws IOException { 50 | FXMLLoader fxmlLoader = new FXMLLoader(Application.class.getResource("signup-view.fxml")); 51 | Scene signupScene = new Scene(fxmlLoader.load()); 52 | Scene oldSignin = ((Node)e.getSource()).getScene(); 53 | Stage stage = (Stage) (oldSignin.getWindow()); 54 | stage.setScene(signupScene); 55 | } 56 | 57 | @Override 58 | public void initialize(URL url, ResourceBundle resourceBundle) { 59 | signinMessage.setText(AppConstants.getSignInMessage()); 60 | } 61 | } -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/SignupController.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal; 2 | 3 | import com.bikram.javafinal.Models.AppConstants; 4 | import com.bikram.javafinal.dbconnections.Dbconnection; 5 | import javafx.event.ActionEvent; 6 | import javafx.fxml.FXML; 7 | import javafx.fxml.FXMLLoader; 8 | import javafx.fxml.Initializable; 9 | import javafx.scene.Node; 10 | import javafx.scene.Scene; 11 | import javafx.scene.control.Label; 12 | import javafx.scene.control.PasswordField; 13 | import javafx.scene.control.TextArea; 14 | import javafx.scene.control.TextField; 15 | import javafx.stage.Stage; 16 | 17 | import java.io.IOException; 18 | import java.net.URL; 19 | import java.util.ResourceBundle; 20 | 21 | public class SignupController implements Initializable { 22 | @FXML 23 | private Label signupMessage; 24 | 25 | @FXML 26 | private TextField username; 27 | @FXML 28 | private PasswordField password; 29 | @FXML 30 | private TextField name; 31 | 32 | @FXML 33 | protected void onSignUp(ActionEvent event){ 34 | String n = name.getText(); 35 | String un = username.getText(); 36 | String pw = password.getText(); 37 | try { 38 | Dbconnection.signUp(n,un,pw); 39 | AppConstants.setSignInMessage("Signup Successful. Please login now."); 40 | FXMLLoader fxmlLoader = new FXMLLoader(Application.class.getResource("hello-view.fxml")); 41 | Scene signinScene = new Scene(fxmlLoader.load()); 42 | Scene oldSignup = ((Node)event.getSource()).getScene(); 43 | Stage stage = (Stage) (oldSignup.getWindow()); 44 | stage.setScene(signinScene); 45 | System.out.println("Signup successful"); 46 | } catch (Exception e) { 47 | AppConstants.setSignUpMessage("Signup Failed!"); 48 | signupMessage.setText(AppConstants.getSignUpMessage()); 49 | System.out.println("Error with creating account. " + e.getMessage()); 50 | } 51 | } 52 | @FXML 53 | protected void onSigninClick( ActionEvent e) throws IOException { 54 | FXMLLoader fxmlLoader = new FXMLLoader(Application.class.getResource("hello-view.fxml")); 55 | Scene signinScene = new Scene(fxmlLoader.load()); 56 | Scene oldSignup = ((Node)e.getSource()).getScene(); 57 | Stage stage = (Stage) (oldSignup.getWindow()); 58 | stage.setScene(signinScene); 59 | } 60 | 61 | @Override 62 | public void initialize(URL url, ResourceBundle resourceBundle) { 63 | signupMessage.setText(AppConstants.getSignUpMessage()); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/Student-item.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 26 | 31 | 36 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/main/resources/com/bikram/javafinal/Student-item.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 26 | 31 | 36 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/hello-view.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 | 25 | 26 | 27 | 28 | 29 | 34 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/resources/com/bikram/javafinal/hello-view.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 | 25 | 26 | 27 | 28 | 29 | 34 | 39 | 40 | -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/style.css: -------------------------------------------------------------------------------- 1 | .button 2 | { 3 | -fx-background-color : #05071F; 4 | -fx-text-fill : #e7e5e5; 5 | } 6 | .button:hover{ 7 | -fx-background-color : #10165F; 8 | } 9 | .button:pressed 10 | { 11 | -fx-background-color : #1620A1; 12 | } 13 | 14 | .scroll-pane { 15 | -fx-background-color: #02030A; 16 | } 17 | 18 | .scroll-bar:horizontal, .scroll-bar:vertical{ 19 | -fx-background-color:transparent; 20 | } 21 | 22 | .increment-button, .decrement-button { 23 | -fx-background-color: transparent; 24 | -fx-border-color: transparent; 25 | } 26 | 27 | .scroll-bar:horizontal .track, 28 | .scroll-bar:vertical .track{ 29 | -fx-background-color: transparent; 30 | -fx-border-color: transparent; 31 | -fx-background-radius: 0em; 32 | } 33 | 34 | .scroll-bar:horizontal .thumb, 35 | .scroll-bar:vertical .thumb { 36 | -fx-background-color: #10165F; 37 | -fx-background-radius: 5em; 38 | } 39 | 40 | .scroll-pane > .corner { 41 | -fx-background-color: black; 42 | } 43 | .chart { 44 | -fx-padding: 10px; 45 | -fx-background-color: #02030A; 46 | } 47 | .chart-plot-background { 48 | -fx-background-color:transparent; 49 | } 50 | .chart-title { 51 | -fx-text-fill: #e7e5e5; 52 | } 53 | 54 | .chart-legend { 55 | -fx-background-color: transparent; 56 | } 57 | 58 | .chart-legend-item{ 59 | -fx-text-fill: #e7e5e5; 60 | } 61 | .default-color0.chart-series-line { -fx-stroke: rgba(42,115,255,0.7) } 62 | .default-color2.chart-series-line { -fx-stroke: rgba(38,191,188,0.7) } 63 | .default-color1.chart-series-line { -fx-stroke: rgba(250,95,126,0.7) } 64 | .default-color3.chart-series-line { -fx-stroke: rgba(222,0,0,0.7) } 65 | .default-color4.chart-series-line { -fx-stroke: rgba(16,22,95,0.7) } 66 | .default-color0.chart-line-symbol { -fx-background-color: rgba(42,115,255,0.7), transparent; } 67 | .default-color2.chart-line-symbol { -fx-background-color: rgba(38,191,188,0.7), transparent; } 68 | .default-color1.chart-line-symbol { -fx-background-color: rgba(250,95,126,0.7), transparent; } 69 | .default-color3.chart-line-symbol { -fx-background-color: rgba(222,0,0,0.7), transparent; } 70 | .default-color4.chart-line-symbol { -fx-background-color: rgba(16,22,95,0.7), transparent; } 71 | 72 | 73 | .default-color0.chart-pie { -fx-pie-color: rgba(42,115,255,0.7) } 74 | .default-color2.chart-pie { -fx-pie-color: rgba(38,191,188,0.7) } 75 | .default-color1.chart-pie { -fx-pie-color: rgba(250,95,126,0.7) } 76 | .default-color3.chart-pie { -fx-pie-color: rgba(222,0,0,0.7) } 77 | 78 | .default-color0.chart-bar { -fx-bar-fill: rgba(42,115,255,0.7) } 79 | .default-color2.chart-bar { -fx-bar-fill: rgba(38,191,188,0.7) } 80 | .default-color1.chart-bar { -fx-bar-fill: rgba(250,95,126,0.7) } 81 | .default-color3.chart-bar { -fx-bar-fill: rgba(222,0,0,0.7) } 82 | 83 | 84 | .axis-label { 85 | -fx-text-fill: #e7e5e5; 86 | } 87 | .chart-pie-label-line { 88 | -fx-stroke: #e7e5e5; 89 | -fx-fill: #e7e5e5; 90 | } 91 | 92 | .chart-pie-label { /*this is what you need for labels*/ 93 | -fx-fill: #e7e5e5; 94 | -fx-font-size: 1em; 95 | } -------------------------------------------------------------------------------- /src/main/resources/com/bikram/javafinal/style.css: -------------------------------------------------------------------------------- 1 | .button 2 | { 3 | -fx-background-color : #05071F; 4 | -fx-text-fill : #e7e5e5; 5 | } 6 | .button:hover{ 7 | -fx-background-color : #10165F; 8 | } 9 | .button:pressed 10 | { 11 | -fx-background-color : #1620A1; 12 | } 13 | 14 | .scroll-pane { 15 | -fx-background-color: #02030A; 16 | } 17 | 18 | .scroll-bar:horizontal, .scroll-bar:vertical{ 19 | -fx-background-color:transparent; 20 | } 21 | 22 | .increment-button, .decrement-button { 23 | -fx-background-color: transparent; 24 | -fx-border-color: transparent; 25 | } 26 | 27 | .scroll-bar:horizontal .track, 28 | .scroll-bar:vertical .track{ 29 | -fx-background-color: transparent; 30 | -fx-border-color: transparent; 31 | -fx-background-radius: 0em; 32 | } 33 | 34 | .scroll-bar:horizontal .thumb, 35 | .scroll-bar:vertical .thumb { 36 | -fx-background-color: #10165F; 37 | -fx-background-radius: 5em; 38 | } 39 | 40 | .scroll-pane > .corner { 41 | -fx-background-color: black; 42 | } 43 | .chart { 44 | -fx-padding: 10px; 45 | -fx-background-color: #02030A; 46 | } 47 | .chart-plot-background { 48 | -fx-background-color:transparent; 49 | } 50 | .chart-title { 51 | -fx-text-fill: #e7e5e5; 52 | } 53 | 54 | .chart-legend { 55 | -fx-background-color: transparent; 56 | } 57 | 58 | .chart-legend-item{ 59 | -fx-text-fill: #e7e5e5; 60 | } 61 | .default-color0.chart-series-line { -fx-stroke: rgba(42,115,255,0.7) } 62 | .default-color2.chart-series-line { -fx-stroke: rgba(38,191,188,0.7) } 63 | .default-color1.chart-series-line { -fx-stroke: rgba(250,95,126,0.7) } 64 | .default-color3.chart-series-line { -fx-stroke: rgba(222,0,0,0.7) } 65 | .default-color4.chart-series-line { -fx-stroke: rgba(16,22,95,0.7) } 66 | .default-color0.chart-line-symbol { -fx-background-color: rgba(42,115,255,0.7), transparent; } 67 | .default-color2.chart-line-symbol { -fx-background-color: rgba(38,191,188,0.7), transparent; } 68 | .default-color1.chart-line-symbol { -fx-background-color: rgba(250,95,126,0.7), transparent; } 69 | .default-color3.chart-line-symbol { -fx-background-color: rgba(222,0,0,0.7), transparent; } 70 | .default-color4.chart-line-symbol { -fx-background-color: rgba(16,22,95,0.7), transparent; } 71 | 72 | 73 | .default-color0.chart-pie { -fx-pie-color: rgba(42,115,255,0.7) } 74 | .default-color2.chart-pie { -fx-pie-color: rgba(38,191,188,0.7) } 75 | .default-color1.chart-pie { -fx-pie-color: rgba(250,95,126,0.7) } 76 | .default-color3.chart-pie { -fx-pie-color: rgba(222,0,0,0.7) } 77 | 78 | .default-color0.chart-bar { -fx-bar-fill: rgba(42,115,255,0.7) } 79 | .default-color2.chart-bar { -fx-bar-fill: rgba(38,191,188,0.7) } 80 | .default-color1.chart-bar { -fx-bar-fill: rgba(250,95,126,0.7) } 81 | .default-color3.chart-bar { -fx-bar-fill: rgba(222,0,0,0.7) } 82 | 83 | 84 | .axis-label { 85 | -fx-text-fill: #e7e5e5; 86 | } 87 | .chart-pie-label-line { 88 | -fx-stroke: #e7e5e5; 89 | -fx-fill: #e7e5e5; 90 | } 91 | 92 | .chart-pie-label { /*this is what you need for labels*/ 93 | -fx-fill: #e7e5e5; 94 | -fx-font-size: 1em; 95 | } -------------------------------------------------------------------------------- /target/classes/com/bikram/javafinal/signup-view.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/main/resources/com/bikram/javafinal/signup-view.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /JavaFinal.iml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.bikram 8 | JavaFinal 9 | 1.0-SNAPSHOT 10 | JavaFinal 11 | 12 | 13 | UTF-8 14 | 5.8.1 15 | 16 | 17 | 18 | 19 | org.openjfx 20 | javafx-controls 21 | 17.0.1 22 | 23 | 24 | org.openjfx 25 | javafx-fxml 26 | 17.0.1 27 | 28 | 29 | org.openjfx 30 | javafx-web 31 | 17.0.1 32 | 33 | 34 | org.controlsfx 35 | controlsfx 36 | 11.1.0 37 | 38 | 39 | com.dlsc.formsfx 40 | formsfx-core 41 | 11.3.2 42 | 43 | 44 | org.openjfx 45 | * 46 | 47 | 48 | 49 | 50 | net.synedra 51 | validatorfx 52 | 0.1.13 53 | 54 | 55 | org.openjfx 56 | * 57 | 58 | 59 | 60 | 61 | eu.hansolo 62 | tilesfx 63 | 11.48 64 | 65 | 66 | org.openjfx 67 | * 68 | 69 | 70 | 71 | 72 | org.junit.jupiter 73 | junit-jupiter-api 74 | ${junit.version} 75 | test 76 | 77 | 78 | org.junit.jupiter 79 | junit-jupiter-engine 80 | ${junit.version} 81 | test 82 | 83 | 84 | 85 | 86 | 87 | 88 | org.apache.maven.plugins 89 | maven-compiler-plugin 90 | 3.8.1 91 | 92 | 17 93 | 17 94 | 95 | 96 | 97 | org.openjfx 98 | javafx-maven-plugin 99 | 0.0.8 100 | 101 | 102 | 103 | default-cli 104 | 105 | com.bikram.javafinal/com.bikram.javafinal.Application 106 | app 107 | app 108 | app 109 | true 110 | true 111 | true 112 | 113 | 114 | 115 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/dbconnections/Dbconnection.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.dbconnections; 2 | 3 | import com.bikram.javafinal.Models.GradeWiseData; 4 | import com.bikram.javafinal.Models.SubjectWiseData; 5 | import com.bikram.javafinal.Models.LoginResult; 6 | import com.bikram.javafinal.Models.Students; 7 | import javafx.collections.FXCollections; 8 | import javafx.collections.ObservableList; 9 | 10 | import java.sql.*; 11 | 12 | public class Dbconnection { 13 | static Statement stm; 14 | static Connection conn; 15 | 16 | 17 | public void connect() throws Exception { 18 | try { 19 | Class.forName("com.mysql.jdbc.Driver"); 20 | String username = "user"; 21 | String password = "pass"; 22 | conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/javafinal",username,password); 23 | stm = conn.createStatement(); 24 | System.out.println("Connected"); 25 | } catch (Exception e){ 26 | System.out.println("Error while connecting to database. " + e.getMessage()); 27 | } 28 | } 29 | public static LoginResult login(String username, String password) { 30 | try { 31 | // check if provided username and password are correct 32 | PreparedStatement preparedStmt = conn.prepareStatement("SELECT * FROM Users WHERE username = ? AND password = ?"); 33 | preparedStmt.setString(1, username); 34 | preparedStmt.setString(2, password); 35 | ResultSet rs = preparedStmt.executeQuery(); 36 | if(rs.next()) { 37 | return new LoginResult(true,rs.getString("name")); 38 | } 39 | } catch (SQLException e) { 40 | System.out.println("Error with login. " + e.getMessage()); 41 | return new LoginResult(false); 42 | } 43 | return new LoginResult(false); 44 | } 45 | public static void signUp(String name,String username, String password) throws Exception{ 46 | 47 | 48 | PreparedStatement pst = conn.prepareStatement("INSERT INTO Users(name,username,password) VALUES (?,?,?)"); 49 | pst.setString(1,name); 50 | pst.setString(2,username); 51 | pst.setString(3,password); 52 | 53 | pst.executeUpdate(); 54 | } 55 | public static void registerStudent(Students s) throws Exception { 56 | PreparedStatement pst = conn.prepareStatement("INSERT INTO Student(name,roll,maths,science,social,english,nepali) VALUES (?,?,?,?,?,?,?)"); 57 | pst.setString(1,s.getName()); 58 | pst.setInt(2,s.getRoll()); 59 | pst.setInt(3,s.getMaths()); 60 | pst.setInt(4,s.getScience()); 61 | pst.setInt(5,s.getSocial()); 62 | pst.setInt(6,s.getEnglish()); 63 | pst.setInt(7,s.getNepali()); 64 | pst.executeUpdate(); 65 | } 66 | // void getAllData() throws Exception{ 67 | // final String command = "SELECT * FROM Students"; 68 | // ResultSet rs =stm.executeQuery(command); 69 | // while (rs.next()){ 70 | // System.out.println(rs.getString(1)); 71 | // } 72 | // } 73 | public static ObservableList getAllStudents() throws Exception { 74 | 75 | ObservableList list = FXCollections.observableArrayList(); 76 | Statement st = conn.createStatement(); 77 | String statement = "SELECT * FROM student"; 78 | ResultSet rs = st.executeQuery(statement); 79 | while (rs.next()) { 80 | list.add(new Students(rs.getInt("roll"),rs.getString("name"),rs.getInt("maths"),rs.getInt("science"),rs.getInt("social"),rs.getInt("english"),rs.getInt("nepali"))); 81 | } 82 | return list; 83 | } 84 | public static Students getStudent( int roll) throws Exception { 85 | Statement st = conn.createStatement(); 86 | String statement = "SELECT * FROM student where roll= " + Integer.toString(roll); 87 | ResultSet rs = st.executeQuery(statement); 88 | if (rs.next()) { 89 | return new Students(rs.getInt("roll"),rs.getString("name"),rs.getInt("maths"),rs.getInt("science"),rs.getInt("social"),rs.getInt("english"),rs.getInt("nepali")); 90 | } else return null; 91 | } 92 | 93 | 94 | // Get Total Number of Students, 95 | public static Integer getTotalStudents() throws Exception { 96 | String statement = "SELECT COUNT(*) FROM student"; 97 | ResultSet rs = stm.executeQuery(statement); 98 | rs.next(); 99 | return rs.getInt(1); 100 | } 101 | // Total Pass students assuming pass marks 40 102 | public static Integer getTotalPassStudents() throws Exception { 103 | String statement = "SELECT COUNT(*) FROM student WHERE maths >= 40 AND science >= 40 AND social >= 40 AND english >= 40 AND nepali >= 40"; 104 | ResultSet rs = stm.executeQuery(statement); 105 | rs.next(); 106 | return rs.getInt(1); 107 | } 108 | // Highest Percentage Scored 109 | public static Integer getHighestPercentage() throws Exception { 110 | String statement = "SELECT MAX(maths+science+social+english+nepali) FROM student"; 111 | ResultSet rs = stm.executeQuery(statement); 112 | rs.next(); 113 | return rs.getInt(1); 114 | } 115 | 116 | // Get separate average marks of each 117 | // subject 118 | public static SubjectWiseData getAverageMarks() throws Exception { 119 | String statement = "SELECT AVG(maths),AVG(science),AVG(social),AVG(english),AVG(nepali) FROM student"; 120 | ResultSet rs = stm.executeQuery(statement); 121 | rs.next(); 122 | return new SubjectWiseData(rs.getInt(1),rs.getInt(2),rs.getInt(3),rs.getInt(4),rs.getInt(5)); 123 | } 124 | public static SubjectWiseData getHighestMarks() throws Exception { 125 | String statement = "SELECT MAX(maths),MAX(science),MAX(social),MAX(english),MAX(nepali) FROM student"; 126 | ResultSet rs = stm.executeQuery(statement); 127 | rs.next(); 128 | return new SubjectWiseData(rs.getInt(1),rs.getInt(2),rs.getInt(3),rs.getInt(4),rs.getInt(5)); 129 | } 130 | public static SubjectWiseData getLowestMarks() throws Exception { 131 | String statement = "SELECT MIN(maths),MIN(science),MIN(social),MIN(english),MIN(nepali) FROM student"; 132 | ResultSet rs = stm.executeQuery(statement); 133 | rs.next(); 134 | return new SubjectWiseData(rs.getInt(1),rs.getInt(2),rs.getInt(3),rs.getInt(4),rs.getInt(5)); 135 | } 136 | // Number of students scoring A+, A, B+, B, C+, C and F Grade in maths 137 | public static GradeWiseData getGradeWiseMarks(String sub) throws Exception { 138 | 139 | String statement = "SELECT COUNT(*) FROM student WHERE "+sub+">= 90"; 140 | ResultSet rs = stm.executeQuery(statement); 141 | rs.next(); 142 | int ap = rs.getInt(1); 143 | statement = "SELECT COUNT(*) FROM student WHERE "+sub+" >= 80 AND "+sub+"< 90"; 144 | rs = stm.executeQuery(statement); 145 | rs.next(); 146 | int a = rs.getInt(1); 147 | statement = "SELECT COUNT(*) FROM student WHERE "+sub+" >= 70 AND "+sub+"< 80"; 148 | rs = stm.executeQuery(statement); 149 | rs.next(); 150 | int bp = rs.getInt(1); 151 | statement = "SELECT COUNT(*) FROM student WHERE "+sub+" >= 60 AND "+sub+"< 70"; 152 | rs = stm.executeQuery(statement); 153 | rs.next(); 154 | int b = rs.getInt(1); 155 | statement = "SELECT COUNT(*) FROM student WHERE "+sub+" >= 50 AND "+sub+"< 60"; 156 | rs = stm.executeQuery(statement); 157 | rs.next(); 158 | int cp = rs.getInt(1); 159 | statement = "SELECT COUNT(*) FROM student WHERE "+sub+" >= 40 AND "+sub+"< 50"; 160 | rs = stm.executeQuery(statement); 161 | rs.next(); 162 | int c = rs.getInt(1); 163 | statement = "SELECT COUNT(*) FROM student WHERE "+sub+" >= 20 AND "+sub+"< 40"; 164 | rs = stm.executeQuery(statement); 165 | rs.next(); 166 | int d = rs.getInt(1); 167 | statement = "SELECT COUNT(*) FROM student WHERE "+sub+" >= 1 AND "+sub+"< 20"; 168 | rs = stm.executeQuery(statement); 169 | rs.next(); 170 | int e = rs.getInt(1); 171 | statement = "SELECT COUNT(*) FROM student WHERE "+sub+"<= 0"; 172 | rs = stm.executeQuery(statement); 173 | rs.next(); 174 | int n = rs.getInt(1); 175 | return new GradeWiseData(ap,a,bp,b,cp,c,d,e,n); 176 | } 177 | 178 | } 179 | -------------------------------------------------------------------------------- /.idea/uiDesigner.xml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/Models/AWTExample.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal.Models; 2 | 3 | import javax.swing.*; 4 | import java.awt.*; 5 | import java.awt.event.ActionEvent; 6 | import java.awt.event.ActionListener; 7 | import java.awt.event.WindowEvent; 8 | import java.awt.event.WindowListener; 9 | 10 | // class AWTExample2 directly creates instance of Frame class 11 | public class AWTExample implements WindowListener, ActionListener { 12 | Frame f; 13 | Label l1; 14 | Button b1,b2,b3,b4,b5,b6,b7,b8,b9,b0; 15 | Button badd,bsub,bmult,bdiv,bmod,bcalc,bclr,bpts,bneg,bback; 16 | double xd; 17 | double num1,num2,check; 18 | // initializing using constructor 19 | public AWTExample() { 20 | 21 | 22 | // creating a Frame 23 | f = new Frame(); 24 | f.addWindowListener(this); 25 | l1 = new Label(); 26 | l1.setBackground(Color.LIGHT_GRAY); 27 | l1.setBounds(50, 50, 260, 60); 28 | 29 | 30 | b1 = new Button("1"); 31 | b1.setBounds(50, 340, 50, 50); 32 | b2 = new Button("2"); 33 | b2.setBounds(120, 340, 50, 50); 34 | b3 = new Button("3"); 35 | b3.setBounds(190, 340, 50, 50); 36 | b4 = new Button("4"); 37 | b4.setBounds(50, 270, 50, 50); 38 | b5 = new Button("5"); 39 | b5.setBounds(120, 270, 50, 50); 40 | b6 = new Button("6"); 41 | b6.setBounds(190, 270, 50, 50); 42 | b7 = new Button("7"); 43 | b7.setBounds(50, 200, 50, 50); 44 | b8 = new Button("8"); 45 | b8.setBounds(120, 200, 50, 50); 46 | b9 = new Button("9"); 47 | b9.setBounds(190, 200, 50, 50); 48 | b0 = new Button("0"); 49 | b0.setBounds(120, 410, 50, 50); 50 | bneg = new Button("+/-"); 51 | bneg.setBounds(50, 410, 50, 50); 52 | bpts = new Button("."); 53 | bpts.setBounds(190, 410, 50, 50); 54 | bback = new Button("back"); 55 | bback.setBounds(120, 130, 50, 50); 56 | 57 | badd = new Button("+"); 58 | badd.setBounds(260, 340, 50, 50); 59 | bsub = new Button("-"); 60 | bsub.setBounds(260, 270, 50, 50); 61 | bmult = new Button("*"); 62 | bmult.setBounds(260, 200, 50, 50); 63 | bdiv = new Button("/"); 64 | bdiv.setBounds(260, 130, 50, 50); 65 | bmod = new Button("%"); 66 | bmod.setBounds(190, 130, 50, 50); 67 | bcalc = new Button("="); 68 | bcalc.setBounds(245, 410, 65, 50); 69 | bclr = new Button("CE"); 70 | bclr.setBounds(50, 130, 65, 50); 71 | 72 | 73 | b1.addActionListener(this); 74 | b2.addActionListener(this); 75 | b3.addActionListener(this); 76 | b4.addActionListener(this); 77 | b5.addActionListener(this); 78 | b6.addActionListener(this); 79 | b7.addActionListener(this); 80 | b8.addActionListener(this); 81 | b9.addActionListener(this); 82 | b0.addActionListener(this); 83 | 84 | bpts.addActionListener(this); 85 | bneg.addActionListener(this); 86 | bback.addActionListener(this); 87 | 88 | badd.addActionListener(this); 89 | bsub.addActionListener(this); 90 | bmult.addActionListener(this); 91 | bdiv.addActionListener(this); 92 | bmod.addActionListener(this); 93 | bcalc.addActionListener(this); 94 | bclr.addActionListener(this); 95 | 96 | f.add(l1); 97 | f.add(b1); 98 | f.add(b2); 99 | f.add(b3); 100 | f.add(b4); 101 | f.add(b5); 102 | f.add(b6); 103 | f.add(b7); 104 | f.add(b8); 105 | f.add(b9); 106 | f.add(b0); 107 | 108 | f.add(badd); 109 | f.add(bsub); 110 | f.add(bmod); 111 | f.add(bmult); 112 | f.add(bdiv); 113 | f.add(bmod); 114 | f.add(bcalc); 115 | 116 | f.add(bclr); 117 | f.add(bpts); 118 | f.add(bneg); 119 | f.add(bback); 120 | 121 | f.setSize(360, 500); 122 | f.setLayout(null); 123 | f.setVisible(true); 124 | 125 | 126 | } 127 | 128 | 129 | @Override 130 | public void windowOpened(WindowEvent windowEvent) { 131 | 132 | } 133 | 134 | @Override 135 | public void windowClosing(WindowEvent windowEvent) { 136 | f.dispose(); 137 | } 138 | 139 | @Override 140 | public void windowClosed(WindowEvent windowEvent) { 141 | 142 | } 143 | 144 | @Override 145 | public void windowIconified(WindowEvent windowEvent) { 146 | 147 | } 148 | 149 | @Override 150 | public void windowDeiconified(WindowEvent windowEvent) { 151 | 152 | } 153 | 154 | @Override 155 | public void windowActivated(WindowEvent windowEvent) { 156 | 157 | } 158 | 159 | @Override 160 | public void windowDeactivated(WindowEvent windowEvent) { 161 | 162 | } 163 | 164 | @Override 165 | public void actionPerformed(ActionEvent e) { 166 | String z,zt; 167 | //NUMBER BUTTON 168 | if(e.getSource()==b1){ 169 | zt=l1.getText(); 170 | z=zt+"1"; 171 | l1.setText(z); 172 | } 173 | if(e.getSource()==b2){ 174 | zt=l1.getText(); 175 | z=zt+"2"; 176 | l1.setText(z); 177 | } 178 | if(e.getSource()==b3){ 179 | zt=l1.getText(); 180 | z=zt+"3"; 181 | l1.setText(z); 182 | } 183 | if(e.getSource()==b4){ 184 | zt=l1.getText(); 185 | z=zt+"4"; 186 | l1.setText(z); 187 | } 188 | if(e.getSource()==b5){ 189 | zt=l1.getText(); 190 | z=zt+"5"; 191 | l1.setText(z); 192 | } 193 | if(e.getSource()==b6){ 194 | zt=l1.getText(); 195 | z=zt+"6"; 196 | l1.setText(z); 197 | } 198 | if(e.getSource()==b7){ 199 | zt=l1.getText(); 200 | z=zt+"7"; 201 | l1.setText(z); 202 | } 203 | if(e.getSource()==b8){ 204 | zt=l1.getText(); 205 | z=zt+"8"; 206 | l1.setText(z); 207 | } 208 | if(e.getSource()==b9){ 209 | zt=l1.getText(); 210 | z=zt+"9"; 211 | l1.setText(z); 212 | } 213 | if(e.getSource()==b0){ 214 | zt=l1.getText(); 215 | z=zt+"0"; 216 | l1.setText(z); 217 | } 218 | 219 | if(e.getSource()==bpts){ //ADD DECIMAL PTS 220 | zt=l1.getText(); 221 | z=zt+"."; 222 | l1.setText(z); 223 | } 224 | if(e.getSource()==bneg){ //FOR NEGATIVE 225 | zt=l1.getText(); 226 | z="-"+zt; 227 | l1.setText(z); 228 | } 229 | 230 | if(e.getSource()==bback){ // FOR BACKSPACE 231 | zt=l1.getText(); 232 | try{ 233 | z=zt.substring(0, zt.length()-1); 234 | }catch(StringIndexOutOfBoundsException f){return;} 235 | l1.setText(z); 236 | } 237 | //AIRTHMETIC BUTTON 238 | if(e.getSource()==badd){ //FOR ADDITION 239 | try{ 240 | num1=Double.parseDouble(l1.getText()); 241 | }catch(NumberFormatException f){ 242 | l1.setText("Invalid Format"); 243 | return; 244 | } 245 | z=""; 246 | l1.setText(z); 247 | check=1; 248 | } 249 | if(e.getSource()==bsub){ //FOR SUBTRACTION 250 | try{ 251 | num1=Double.parseDouble(l1.getText()); 252 | }catch(NumberFormatException f){ 253 | l1.setText("Invalid Format"); 254 | return; 255 | } 256 | z=""; 257 | l1.setText(z); 258 | check=2; 259 | } 260 | if(e.getSource()==bmult){ //FOR MULTIPLICATION 261 | try{ 262 | num1=Double.parseDouble(l1.getText()); 263 | }catch(NumberFormatException f){ 264 | l1.setText("Invalid Format"); 265 | return; 266 | } 267 | z=""; 268 | l1.setText(z); 269 | check=3; 270 | } 271 | if(e.getSource()==bdiv){ //FOR DIVISION 272 | try{ 273 | num1=Double.parseDouble(l1.getText()); 274 | }catch(NumberFormatException f){ 275 | l1.setText("Invalid Format"); 276 | return; 277 | } 278 | z=""; 279 | l1.setText(z); 280 | check=4; 281 | } 282 | if(e.getSource()==bmod){ //FOR MOD/REMAINDER 283 | try{ 284 | num1=Double.parseDouble(l1.getText()); 285 | }catch(NumberFormatException f){ 286 | l1.setText("Invalid Format"); 287 | return; 288 | } 289 | z=""; 290 | l1.setText(z); 291 | check=5; 292 | } 293 | //RESULT BUTTON 294 | if(e.getSource()==bcalc){ 295 | try{ 296 | num2=Double.parseDouble(l1.getText()); 297 | }catch(Exception f){ 298 | l1.setText("ENTER NUMBER FIRST "); 299 | return; 300 | } 301 | if(check==1) 302 | xd =num1+num2; 303 | if(check==2) 304 | xd =num1-num2; 305 | if(check==3) 306 | xd =num1*num2; 307 | if(check==4) 308 | xd =num1/num2; 309 | if(check==5) 310 | xd =num1%num2; 311 | l1.setText(String.valueOf(xd)); 312 | } 313 | //FOR CLEARING THE LABEL and Memory 314 | if(e.getSource()==bclr){ 315 | num1=0; 316 | num2=0; 317 | check=0; 318 | xd=0; 319 | z=""; 320 | l1.setText(z); 321 | } 322 | } 323 | } -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | [![Contributors][contributors-shield]][contributors-url] 5 | [![Forks][forks-shield]][forks-url] 6 | [![Stargazers][stars-shield]][stars-url] 7 | [![Issues][issues-shield]][issues-url] 8 | [![MIT License][license-shield]][license-url] 9 | [![LinkedIn][linkedin-shield]][linkedin-url] 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | Logo 18 | 19 | 20 |

Kakshya RMS

21 | 22 |

23 | A simple Java lab-work for the class of 'Programming in Java' 24 |
25 | Explore the docs » 26 |
27 |
28 | View Demo 29 | · 30 | Report Bug 31 | · 32 | Request Feature 33 |

34 |
35 | 36 | 37 | 38 | 39 |
40 | Table of Contents 41 |
    42 |
  1. 43 | About The Project 44 | 47 |
  2. 48 |
  3. 49 | Getting Started 50 | 54 |
  4. 55 |
  5. Usage
  6. 56 |
  7. Roadmap
  8. 57 |
  9. Contributing
  10. 58 |
  11. License
  12. 59 |
  13. Contact
  14. 60 |
  15. Acknowledgments
  16. 61 |
62 |
63 | 64 | 65 | 66 | 67 | ## About The Project 68 | 69 | [![kakshya CMS][product-screenshot]](#) 70 | ![images/Screenshot1.png](images/Screenshot1.png) 71 | 72 | **Kakshya RMS** is a result management system app written in Java to understand the usage of various Java libraries and concepts. 73 | Here's why: 74 | * Every topic and concept is attempted to be implemented in the most practical way. 75 | * This should help you to understand the concepts and learn the best way to implement them. :smile: 76 | 77 | Thi is still a work in progress and you can help us by contributing to the project. 78 | 79 | 80 |

(back to top)

81 | 82 | 83 | 84 | ### Built With 85 | 86 | The goal of the project was to cover almost/all the concepts and libraries of Java included in the curriculum of 'Programming in Java' class. Also, I have tried to avoid external libraries and frameworks. 87 | 88 | * [IntelliJ Idea Community Edition](https://www.jetbrains.com/idea/download/) 89 | * [Open Jdk 17 (Downloaded by from Intellij itself)](https://openjdk.java.net/install/) 90 | * [JavaFx](https://openjfx.io/) 91 | * Awt 92 | * Swing 93 | * [JDBC](https://docs.oracle.com/javase/tutorial/jdbc/basics/index.html) 94 | * Socket 95 | * [MySql with Xampp](https://www.apachefriends.org/index.html) 96 | 97 |

(back to top)

98 | 99 | 100 | 101 | 102 | ## Getting Started 103 | 104 | 105 | 106 | ### Prerequisites 107 | 108 | JDK should be installed on your device along with JavaFx. 109 | 110 | ### Installation [TODO] 111 | 112 |

(back to top)

113 | 114 | 115 | 116 | 117 | ## Usage 118 | Here are some of the screenshots of the application. 119 | 120 | **Charts** 121 |
122 | 123 | ![images/Screenshot2.png](images/Screenshot2.png) 124 | **Add Students** 125 |
126 | 127 | ![images/Screenshot3.png](images/Screenshot3.png) 128 | **Import and Export Data with csv [Wip]** 129 |
130 | 131 | ![images/Screenshot4.png](images/Screenshot4.png) 132 | **CLI based commands** 133 |
134 | 135 | ![images/Screenshot5.png](images/Screenshot5.png) 136 | 137 | **CLI based chat system** 138 |
139 | 140 | ![images/Screenshot6.png](images/Screenshot6.png) 141 | 142 | 143 |

(back to top)

144 | 145 | 146 | 147 | 148 | ## Roadmap 149 | 150 | - [ ] Basics 151 | - [x] If Else 152 | - [x] While 153 | - [ ] Do while 154 | - [x] For Loop 155 | - [ ] For Each 156 | - [x] Switch Case 157 | - [x] Arrays 158 | - [x] Basic Class 159 | - [x] Access Modifiers 160 | - [x] Constructors 161 | - [ ] Nested Inner Class 162 | - [ ] Final 163 | - [x] Static 164 | - [x] Inheritance 165 | - [x] Super Class & its Access 166 | - [x] Method Overriding 167 | - [ ] Dynamic Method Dispatch 168 | - [ ] Final with Inheritance 169 | - [ ] Abstract Class 170 | - [x] Interface 171 | - [x] Implementing Interface 172 | - [x] Interface can be Extended 173 | - [ ] Nested Interface 174 | - [x] Packages 175 | - [ ] Setting Classpath 176 | - [x] Exception Handling 177 | - [ ] Multiple Catch 178 | - [x] Nested Try 179 | - [ ] Throw 180 | - [ ] Finally 181 | - [ ] Throws 182 | - [x] Builtin Exception 183 | - [ ] Chained Exception 184 | - [ ] Create and Write on file 185 | - [ ] Read file Content 186 | - [ ] AWT 187 | - [x] AWT Controls 188 | - [x] Label 189 | - [x] Button 190 | - [x] TextField 191 | - [x] TextArea 192 | - [ ] CheckBox 193 | - [ ] Choice 194 | - [ ] List 195 | - [ ] Scrollbar 196 | - [ ] Menu 197 | - [ ] Flowlayout 198 | - [ ] BorderLayout 199 | - [x] GridLayout 200 | - [ ] CardLayout 201 | - [ ] GridBagLayout 202 | - [x] Events Classes 203 | - [x] Event Listeners 204 | - [x] Action Listener 205 | - [ ] Adjustment Listener 206 | - [ ] Component Listener 207 | - [ ] Container Listener 208 | - [ ] Focus Listener 209 | - [ ] Item Listener 210 | - [ ] Key Listener 211 | - [ ] Mouse Listener 212 | - [ ] MouseMotion Listener 213 | - [ ] MouseWheel Listener 214 | - [ ] Text Listener 215 | - [ ] WindowFocus Listener 216 | - [x] Window Listener 217 | - [ ] Adapter Class 218 | - [x] Close By Window Button 219 | - [ ] Swing 220 | - [ ] Multicasting 221 | - [x] JFrame 222 | - [x] JTextField 223 | - [ ] JOptionPane 224 | - [ ] Dialog in Swing 225 | - [ ] Graphics 226 | - [ ] Color Controls 227 | - [ ] Custom Font and Size 228 | - [ ] Geometry 229 | - [ ] DrawArc Implementation 230 | - [ ] DrawOval Implementation 231 | - [ ] DrawRect Implementation 232 | - [ ] PolyLine Implementation 233 | - [ ] Polygon Implementation 234 | - [ ] Round Rectangle Implementation 235 | - [ ] Database 236 | - [x] JDBC Connection 237 | - [x] SQL Commands 238 | - [x] Select Operation 239 | - [x] Create Operation 240 | - [ ] Create Table from Java Code 241 | - [ ] Update Operation 242 | - [ ] Delete Operation 243 | - [ ] Networking 244 | - [ ] URL Class 245 | - [ ] InetAddress Class 246 | - [ ] URL Implementation 247 | - [ ] URL Connection Implementation 248 | - [ ] HttpURL Connection Implementation 249 | - [ ] Whois Implementation 250 | - [x] Socket Programming 251 | - [x] Socket Chat Server 252 | - [x] Socket Chat Client 253 | 254 | See the [open issues](https://github.com/Parajulibkrm/Java-labwork/issues) for a full list of proposed features (and known issues). 255 | 256 |

(back to top)

257 | 258 | 259 | 260 | 261 | ## Contributing 262 | 263 | Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. 264 | 265 | If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". 266 | Don't forget to give the project a star! Thanks again! 267 | 268 | 1. Fork the Project 269 | 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) 270 | 3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) 271 | 4. Push to the Branch (`git push origin feature/AmazingFeature`) 272 | 5. Open a Pull Request 273 | 274 | ### Cotributors 275 | 276 | 277 | 278 | 279 |

(back to top)

280 | 281 | 282 | 283 | 284 | ## License 285 | 286 | Distributed under the _MIT License_ however, you have to link back to the original source. Please do not the copy the project in its entirity and submit it as your own on your academic assignments. You can use the code as a reference but you cannot submit it as your own. 287 | 288 | 289 |

(back to top)

290 | 291 | 292 | 293 | 294 | ## Contact 295 | 296 | Bikram Parajuli 297 | 298 | You can find me on [![Twitter][1.2]][1], or on [![LinkedIn][2.2]][2] 299 | 300 |

(back to top)

301 | 302 | 303 | 304 | 305 | ## Acknowledgments 306 | 307 | Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off! 308 | 309 | * [Github Awesome Readme](https://github.com/othneildrew/Best-README-Template#top) 310 | * [Styling Javafx charts](https://docs.oracle.com/javafx/2/charts/css-styles.htm) 311 | * [Java Notes](https://adhikariarjun.com.np/java-notes/) 312 | * [Img Shields](https://shields.io) 313 | * [Contrib Rocks](https://contrib.rocks) 314 | * [UI Inspiration](https://github.com/k33ptoo/RestaurantMgtSampleUI/blob/master/src/home/Home.fxml) 315 | * and [@arjunadikary](https://github.com/arjunadhikary) for his help in setting up the environment. 316 | 317 |

(back to top)

318 | 319 | 320 | 321 | 322 | 323 | [contributors-shield]: https://img.shields.io/github/contributors/Parajulibkrm/Java-labwork.svg?style=for-the-badge 324 | [contributors-url]: https://github.com/Parajulibkrm/Java-labwork/graphs/contributors 325 | [forks-shield]: https://img.shields.io/github/forks/Parajulibkrm/Java-labwork.svg?style=for-the-badge 326 | [forks-url]: https://github.com/Parajulibkrm/Java-labwork/network/members 327 | [stars-shield]: https://img.shields.io/github/stars/Parajulibkrm/Java-labwork.svg?style=for-the-badge 328 | [stars-url]: https://github.com/Parajulibkrm/Java-labwork/stargazers 329 | [issues-shield]: https://img.shields.io/github/issues/Parajulibkrm/Java-labwork.svg?style=for-the-badge 330 | [issues-url]: https://github.com/Parajulibkrm/Java-labwork/issues 331 | [license-shield]: https://img.shields.io/github/license/Parajulibkrm/Java-labwork.svg?style=for-the-badge 332 | [license-url]: https://github.com/Parajulibkrm/Java-labwork/blob/master/LICENSE.txt 333 | [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555 334 | [linkedin-url]: https://linkedin.com/in/parajulibkrm 335 | [product-screenshot]: images/Screenshot.png 336 | [1.2]: http://i.imgur.com/wWzX9uB.png (twitter icon without padding) 337 | [2.2]: https://raw.githubusercontent.com/MartinHeinz/MartinHeinz/master/linkedin-3-16.png (LinkedIn icon without padding) 338 | [1]: https://twitter.com/Parajulibkrm 339 | [2]: https://www.linkedin.com/in/Parajulibkrm -------------------------------------------------------------------------------- /src/main/java/com/bikram/javafinal/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.bikram.javafinal; 2 | 3 | import com.bikram.javafinal.Models.*; 4 | import com.bikram.javafinal.dbconnections.Dbconnection; 5 | import javafx.collections.FXCollections; 6 | import javafx.collections.ObservableList; 7 | import javafx.event.ActionEvent; 8 | import javafx.fxml.FXML; 9 | import javafx.fxml.FXMLLoader; 10 | import javafx.fxml.Initializable; 11 | import javafx.scene.Node; 12 | import javafx.scene.chart.*; 13 | import javafx.scene.control.Button; 14 | import javafx.scene.control.Label; 15 | import javafx.scene.control.TextField; 16 | import javafx.scene.layout.Pane; 17 | import javafx.scene.layout.VBox; 18 | import javafx.stage.FileChooser; 19 | 20 | import java.io.File; 21 | import java.io.FileInputStream; 22 | import java.io.IOException; 23 | import java.net.URL; 24 | import java.util.ResourceBundle; 25 | 26 | public class HomeController implements Initializable { 27 | 28 | @FXML 29 | private VBox pnItems = null; 30 | 31 | @FXML 32 | private Label loggedinUser; 33 | 34 | @FXML 35 | private Label totalStudent; 36 | 37 | @FXML 38 | private Label passPercent; 39 | 40 | @FXML 41 | private Label failed; 42 | 43 | @FXML 44 | private Label highestPercent; 45 | 46 | @FXML 47 | private Button btnOverview; 48 | 49 | @FXML 50 | private Button btnCharts; 51 | 52 | @FXML 53 | private Button btnAddStudent; 54 | 55 | @FXML 56 | private Button btnMenus; 57 | 58 | @FXML 59 | private Button btnImportExport; 60 | 61 | @FXML 62 | private Button btnSettings; 63 | 64 | @FXML 65 | private Button btnSignout; 66 | 67 | @FXML 68 | private Pane pnlAddStudent; 69 | 70 | @FXML 71 | private Pane pnlBarChart; 72 | 73 | @FXML 74 | private Pane pnlOverview; 75 | 76 | @FXML 77 | private Pane pnlImportExport; 78 | 79 | @FXML 80 | private Pane pnlMenus; 81 | 82 | @FXML 83 | private TextField name; 84 | 85 | @FXML 86 | private TextField roll; 87 | 88 | @FXML 89 | private TextField maths; 90 | 91 | @FXML 92 | private TextField science; 93 | 94 | @FXML 95 | private TextField social; 96 | 97 | @FXML 98 | private TextField english; 99 | 100 | @FXML 101 | private TextField nepali; 102 | 103 | @FXML 104 | LineChart linechart; 105 | 106 | 107 | @FXML 108 | BarChart bc; 109 | 110 | @FXML 111 | PieChart piechart; 112 | 113 | @FXML 114 | TextField importPicker; 115 | 116 | @FXML 117 | TextField exportPicker; 118 | 119 | 120 | @FXML 121 | public void launchAwt (ActionEvent e){ 122 | AWTExample awtExample = new AWTExample(); 123 | } 124 | 125 | @FXML 126 | public void launchSwing(ActionEvent event) { 127 | SwingExample s = new SwingExample(); 128 | } 129 | 130 | @FXML 131 | public void chooseFile(ActionEvent e){ 132 | try { 133 | FileChooser fileChooser = new FileChooser(); 134 | File selectedFile = fileChooser.showOpenDialog(AppConstants.getSt()); 135 | FileInputStream fis = new FileInputStream(selectedFile); 136 | int c; 137 | 138 | while (( c = fis.read()) != -1) { 139 | System.out.print((char)c); 140 | } 141 | fis.close(); 142 | }catch (Exception ex){ 143 | System.out.println("error while reading file"); 144 | } 145 | } 146 | 147 | 148 | @FXML 149 | public void handleSubmit(ActionEvent e){ 150 | Students s = new Students(Integer.parseInt("0"+roll.getText()),name.getText(),Integer.parseInt("0"+maths.getText()),Integer.parseInt("0"+science.getText()),Integer.parseInt("0"+social.getText()),Integer.parseInt("0"+english.getText()),Integer.parseInt("0"+nepali.getText())); 151 | try { 152 | Dbconnection.registerStudent(s); 153 | name.setText(""); 154 | roll.setText(""); 155 | maths.setText(""); 156 | science.setText(""); 157 | social.setText(""); 158 | english.setText(""); 159 | nepali.setText(""); 160 | } catch (Exception ex) { 161 | System.out.println("Error with handling submit. " + ex.getMessage()); 162 | } 163 | } 164 | private void setData(){ 165 | pnItems.getChildren().clear(); 166 | linechart.getData().clear(); 167 | bc.getData().clear(); 168 | 169 | loggedinUser.setText(AppConstants.getLoggedInUser()); 170 | try { 171 | ObservableList studentList = Dbconnection.getAllStudents(); 172 | Node[] nodes = new Node[studentList.size()]; 173 | for (int i = 0; i < nodes.length; i++) { 174 | try { 175 | 176 | final int j = i; 177 | FXMLLoader fl = new FXMLLoader(getClass().getResource("Student-item.fxml")); 178 | nodes[i] = fl.load(); 179 | StudentItemController s= fl.getController(); 180 | s.setData(studentList.get(i)); 181 | 182 | //give the items some effect 183 | 184 | nodes[i].setOnMouseEntered(event -> { 185 | nodes[j].setStyle("-fx-background-color : #0A0E3F"); 186 | }); 187 | nodes[i].setOnMouseExited(event -> { 188 | nodes[j].setStyle("-fx-background-color : #02030A"); 189 | }); 190 | pnItems.getChildren().add(nodes[i]); 191 | } catch (IOException e) { 192 | System.out.println("Error with creating student list. " + e.getMessage()); 193 | } 194 | } 195 | } catch (Exception e) { 196 | System.out.println("Error with fetching student list. " + e.getMessage()); 197 | } 198 | SubjectWiseData avg; 199 | SubjectWiseData max; 200 | SubjectWiseData min; 201 | 202 | GradeWiseData maths; 203 | GradeWiseData science; 204 | GradeWiseData social; 205 | GradeWiseData english; 206 | GradeWiseData nepali; 207 | 208 | try { 209 | avg= Dbconnection.getAverageMarks(); 210 | } catch (Exception e) { 211 | avg = new SubjectWiseData(0,0,0,0,0); 212 | System.out.println("Error with fetching average marks. " + e.getMessage()); 213 | } 214 | try { 215 | max= Dbconnection.getHighestMarks(); 216 | } catch (Exception e) { 217 | max = new SubjectWiseData(0,0,0,0,0); 218 | System.out.println("Error with fetching highest marks. " + e.getMessage()); 219 | } 220 | try { 221 | min= Dbconnection.getLowestMarks(); 222 | } catch (Exception e) { 223 | min = new SubjectWiseData(0,0,0,0,0); 224 | System.out.println("Error with fetching lowest marks. " + e.getMessage()); 225 | } 226 | 227 | try { 228 | maths= Dbconnection.getGradeWiseMarks("Maths"); 229 | } catch (Exception e) { 230 | maths = new GradeWiseData(0,0,0,0,0,0,0,0,0); 231 | System.out.println("Error with fetching maths grade marks. " + e.getMessage()); 232 | } 233 | try { 234 | science= Dbconnection.getGradeWiseMarks("Science"); 235 | } catch (Exception e) { 236 | science = new GradeWiseData(0,0,0,0,0,0,0,0,0); 237 | System.out.println("Error with fetching science grade marks. " + e.getMessage()); 238 | } 239 | try { 240 | social= Dbconnection.getGradeWiseMarks("Social"); 241 | } catch (Exception e) { 242 | social = new GradeWiseData(0,0,0,0,0,0,0,0,0); 243 | System.out.println("Error with fetching social grade marks. " + e.getMessage()); 244 | } 245 | try { 246 | english= Dbconnection.getGradeWiseMarks("English"); 247 | } catch (Exception e) { 248 | english = new GradeWiseData(0,0,0,0,0,0,0,0,0); 249 | System.out.println("Error with fetching english grade marks. " + e.getMessage()); 250 | } 251 | try { 252 | nepali= Dbconnection.getGradeWiseMarks("Nepali"); 253 | } 254 | catch (Exception e) { 255 | nepali = new GradeWiseData(0,0,0,0,0,0,0,0,0); 256 | System.out.println("Error with fetching nepali grade marks. " + e.getMessage()); 257 | } 258 | 259 | 260 | XYChart.Series gradeScience=new XYChart.Series(); 261 | gradeScience.setName("Science"); 262 | gradeScience.getData().add(new XYChart.Data("N",science.getN())); 263 | gradeScience.getData().add(new XYChart.Data("E",science.getE())); 264 | gradeScience.getData().add(new XYChart.Data("D",science.getD())); 265 | gradeScience.getData().add(new XYChart.Data("C",science.getC())); 266 | gradeScience.getData().add(new XYChart.Data("C+",science.getCp())); 267 | gradeScience.getData().add(new XYChart.Data("B+",science.getBp())); 268 | gradeScience.getData().add(new XYChart.Data("B",science.getB())); 269 | gradeScience.getData().add(new XYChart.Data("A",science.getA())); 270 | gradeScience.getData().add(new XYChart.Data("A+",science.getAp())); 271 | linechart.getData().add(gradeScience); 272 | 273 | XYChart.Series gradeMaths=new XYChart.Series(); 274 | gradeMaths.setName("Maths"); 275 | gradeMaths.getData().add(new XYChart.Data("N",maths.getN())); 276 | gradeMaths.getData().add(new XYChart.Data("E",maths.getE())); 277 | gradeMaths.getData().add(new XYChart.Data("D",maths.getD())); 278 | gradeMaths.getData().add(new XYChart.Data("C",maths.getC())); 279 | gradeMaths.getData().add(new XYChart.Data("C+",maths.getCp())); 280 | gradeMaths.getData().add(new XYChart.Data("B+",maths.getBp())); 281 | gradeMaths.getData().add(new XYChart.Data("B",maths.getB())); 282 | gradeMaths.getData().add(new XYChart.Data("A",maths.getA())); 283 | gradeMaths.getData().add(new XYChart.Data("A+",maths.getAp())); 284 | linechart.getData().add(gradeMaths); 285 | 286 | XYChart.Series gradeSocial=new XYChart.Series(); 287 | gradeSocial.setName("Social"); 288 | gradeSocial.getData().add(new XYChart.Data("N",social.getN())); 289 | gradeSocial.getData().add(new XYChart.Data("E",social.getE())); 290 | gradeSocial.getData().add(new XYChart.Data("D",social.getD())); 291 | gradeSocial.getData().add(new XYChart.Data("C",social.getC())); 292 | gradeSocial.getData().add(new XYChart.Data("C+",social.getCp())); 293 | gradeSocial.getData().add(new XYChart.Data("B+",social.getBp())); 294 | gradeSocial.getData().add(new XYChart.Data("B",social.getB())); 295 | gradeSocial.getData().add(new XYChart.Data("A",social.getA())); 296 | gradeSocial.getData().add(new XYChart.Data("A+",social.getAp())); 297 | linechart.getData().add(gradeSocial); 298 | 299 | XYChart.Series gradeEnglish=new XYChart.Series(); 300 | gradeEnglish.setName("English"); 301 | gradeEnglish.getData().add(new XYChart.Data("N",english.getN())); 302 | gradeEnglish.getData().add(new XYChart.Data("E",english.getE())); 303 | gradeEnglish.getData().add(new XYChart.Data("D",english.getD())); 304 | gradeEnglish.getData().add(new XYChart.Data("C",english.getC())); 305 | gradeEnglish.getData().add(new XYChart.Data("C+",english.getCp())); 306 | gradeEnglish.getData().add(new XYChart.Data("B+",english.getBp())); 307 | gradeEnglish.getData().add(new XYChart.Data("B",english.getB())); 308 | gradeEnglish.getData().add(new XYChart.Data("A",english.getA())); 309 | gradeEnglish.getData().add(new XYChart.Data("A+",english.getAp())); 310 | linechart.getData().add(gradeEnglish); 311 | 312 | XYChart.Series gradeNepali=new XYChart.Series(); 313 | gradeNepali.setName("Nepali"); 314 | gradeNepali.getData().add(new XYChart.Data("N",nepali.getN())); 315 | gradeNepali.getData().add(new XYChart.Data("E",nepali.getE())); 316 | gradeNepali.getData().add(new XYChart.Data("D",nepali.getD())); 317 | gradeNepali.getData().add(new XYChart.Data("C",nepali.getC())); 318 | gradeNepali.getData().add(new XYChart.Data("C+",nepali.getCp())); 319 | gradeNepali.getData().add(new XYChart.Data("B+",nepali.getBp())); 320 | gradeNepali.getData().add(new XYChart.Data("B",nepali.getB())); 321 | gradeNepali.getData().add(new XYChart.Data("A",nepali.getA())); 322 | gradeNepali.getData().add(new XYChart.Data("A+",nepali.getAp())); 323 | linechart.getData().add(gradeNepali); 324 | 325 | 326 | XYChart.Series avgseries = new XYChart.Series(); 327 | avgseries.setName("Average"); 328 | avgseries.getData().add(new XYChart.Data("Maths",avg.getMaths())); 329 | avgseries.getData().add(new XYChart.Data("Science",avg.getScience())); 330 | avgseries.getData().add(new XYChart.Data("Social",avg.getSocial())); 331 | avgseries.getData().add(new XYChart.Data("English",avg.getEnglish())); 332 | avgseries.getData().add(new XYChart.Data("Nepali",avg.getNepali())); 333 | 334 | XYChart.Series maxseries = new XYChart.Series(); 335 | maxseries.setName("Highest"); 336 | maxseries.getData().add(new XYChart.Data("Maths",max.getMaths())); 337 | maxseries.getData().add(new XYChart.Data("Science",max.getScience())); 338 | maxseries.getData().add(new XYChart.Data("Social",max.getSocial())); 339 | maxseries.getData().add(new XYChart.Data("English",max.getEnglish())); 340 | maxseries.getData().add(new XYChart.Data("Nepali",max.getNepali())); 341 | 342 | XYChart.Series minseries = new XYChart.Series(); 343 | minseries.setName("Lowest"); 344 | minseries.getData().add(new XYChart.Data("Maths",min.getMaths())); 345 | minseries.getData().add(new XYChart.Data("Science",min.getScience())); 346 | minseries.getData().add(new XYChart.Data("Social",min.getSocial())); 347 | minseries.getData().add(new XYChart.Data("English",min.getEnglish())); 348 | minseries.getData().add(new XYChart.Data("Nepali",min.getNepali())); 349 | 350 | ObservableList pieChartData = 351 | FXCollections.observableArrayList( 352 | new PieChart.Data("Grapefruit", 13), 353 | new PieChart.Data("Oranges", 25), 354 | new PieChart.Data("Plums", 10), 355 | new PieChart.Data("Apples", 30)); 356 | 357 | piechart.setData(pieChartData); 358 | 359 | 360 | // series1.getData().add(new XYChart.Data( "Test", 80)); 361 | bc.getData().add(avgseries); 362 | bc.getData().add(maxseries); 363 | bc.getData().add(minseries); 364 | 365 | int total,fail,pass; 366 | float highest; 367 | try { 368 | total = Dbconnection.getTotalStudents(); 369 | } catch (Exception e) { 370 | total = 0; 371 | System.out.println("Error in getting total students" + e.getMessage()); 372 | } 373 | try { 374 | pass = (int)(( (float)Dbconnection.getTotalPassStudents() /(float) total)*100); 375 | fail = total - Dbconnection.getTotalPassStudents(); 376 | } catch (Exception e) { 377 | pass =0; 378 | fail = 0; 379 | System.out.println("Error in getting pass students" + e.getMessage()); 380 | } 381 | try { 382 | highest = ((float)Dbconnection.getHighestPercentage()/500)*100; 383 | } catch (Exception e) { 384 | highest = 0.0f; 385 | System.out.println("Error in getting highest percentage" + e.getMessage()); 386 | } 387 | totalStudent.setText(Integer.toString(total,10)); 388 | passPercent.setText(Integer.toString(pass) + "%"); 389 | failed.setText(Integer.toString(fail)); 390 | highestPercent.setText(Float.toString(highest)); 391 | } 392 | 393 | @Override 394 | public void initialize(URL location, ResourceBundle resources) { 395 | setData(); 396 | } 397 | 398 | 399 | public void handleClicks(ActionEvent actionEvent) { 400 | setData(); 401 | if (actionEvent.getSource() == btnAddStudent) { 402 | // pnlCustomer.setStyle("-fx-background-color : #1620A1"); 403 | pnlAddStudent.setVisible(true); 404 | pnlOverview.setVisible(false); 405 | pnlBarChart.setVisible(false); 406 | pnlImportExport.setVisible(false); 407 | pnlMenus.setVisible(false); 408 | pnlAddStudent.toFront(); 409 | 410 | } 411 | if (actionEvent.getSource() == btnOverview) { 412 | // pnlOverview.setStyle("-fx-background-color : #02030A"); 413 | pnlAddStudent.setVisible(false); 414 | pnlOverview.setVisible(true); 415 | pnlImportExport.setVisible(false); 416 | pnlBarChart.setVisible(false); 417 | pnlMenus.setVisible(false); 418 | pnlOverview.toFront(); 419 | } 420 | if(actionEvent.getSource()== btnCharts) 421 | { 422 | pnlAddStudent.setVisible(false); 423 | pnlOverview.setVisible(false); 424 | pnlImportExport.setVisible(false); 425 | pnlBarChart.setVisible(true); 426 | pnlMenus.setVisible(false); 427 | pnlBarChart.toFront(); 428 | } 429 | if(actionEvent.getSource()== btnImportExport){ 430 | pnlImportExport.setVisible(true); 431 | pnlAddStudent.setVisible(false); 432 | pnlOverview.setVisible(false); 433 | pnlBarChart.setVisible(false); 434 | pnlMenus.setVisible(false); 435 | pnlImportExport.toFront(); 436 | } 437 | if(actionEvent.getSource()== btnMenus){ 438 | pnlMenus.setVisible(true); 439 | pnlImportExport.setVisible(false); 440 | pnlAddStudent.setVisible(false); 441 | pnlOverview.setVisible(false); 442 | pnlBarChart.setVisible(false); 443 | pnlMenus.toFront(); 444 | } 445 | } 446 | 447 | } -------------------------------------------------------------------------------- /src/main/resources/com/bikram/javafinal/Home-view.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 45 | 57 | 69 | 81 | 93 | 105 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 129 | 130 | 131 | 132 | 133 | 138 | 140 | 141 | 142 | 143 | 148 | 150 | 151 | 152 | 153 | 158 | 160 | 161 | 162 | 163 | 168 | 170 | 171 | 172 | 173 | 174 | 175 | 178 | 180 | 185 | 190 | 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 | 270 | 271 | 45 | 57 | 69 | 81 | 93 | 105 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 129 | 130 | 131 | 132 | 133 | 138 | 140 | 141 | 142 | 143 | 148 | 150 | 151 | 152 | 153 | 158 | 160 | 161 | 162 | 163 | 168 | 170 | 171 | 172 | 173 | 174 | 175 | 178 | 180 | 185 | 190 | 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 | 270 | 271 |