├── .gitignore
├── README.md
├── build.xml
├── build
└── classes
│ ├── .netbeans_automatic_build
│ ├── .netbeans_update_resources
│ └── main
│ ├── About$1.class
│ ├── About$2.class
│ ├── About.class
│ ├── About.form
│ ├── Admin$1.class
│ ├── Admin$10.class
│ ├── Admin$2.class
│ ├── Admin$3.class
│ ├── Admin$4.class
│ ├── Admin$5.class
│ ├── Admin$6.class
│ ├── Admin$7.class
│ ├── Admin$8.class
│ ├── Admin$9.class
│ ├── Admin.class
│ ├── Admin.form
│ ├── Books$1.class
│ ├── Books$2.class
│ ├── Books$3.class
│ ├── Books.class
│ ├── Books.form
│ ├── Conn.class
│ ├── LecturerData$1.class
│ ├── LecturerData$2.class
│ ├── LecturerData$3.class
│ ├── LecturerData$4.class
│ ├── LecturerData$5.class
│ ├── LecturerData.class
│ ├── LecturerData.form
│ ├── Login$1.class
│ ├── Login$2.class
│ ├── Login.class
│ ├── Login.form
│ ├── LoginSession.class
│ ├── ScoresForm$1.class
│ ├── ScoresForm$2.class
│ ├── ScoresForm$3.class
│ ├── ScoresForm$4.class
│ ├── ScoresForm$5.class
│ ├── ScoresForm.class
│ ├── ScoresForm.form
│ ├── SplashScreen$1.class
│ ├── SplashScreen$10.class
│ ├── SplashScreen$2.class
│ ├── SplashScreen$3.class
│ ├── SplashScreen$4.class
│ ├── SplashScreen$5.class
│ ├── SplashScreen$6.class
│ ├── SplashScreen$7.class
│ ├── SplashScreen$8.class
│ ├── SplashScreen$9.class
│ ├── SplashScreen.class
│ ├── SplashScreen.form
│ ├── StudentData$1.class
│ ├── StudentData$2.class
│ ├── StudentData$3.class
│ ├── StudentData$4.class
│ ├── StudentData$5.class
│ ├── StudentData$6.class
│ ├── StudentData.class
│ ├── StudentData.form
│ └── images
│ ├── about.png
│ ├── aboutPage.png
│ ├── admin.png
│ ├── admin2.png
│ ├── adminPage.png
│ ├── books.png
│ ├── close.png
│ ├── home.png
│ ├── icons8_close_50px.png
│ ├── icons8_search_database_50px.png
│ ├── icons8_user_account_50px_1.png
│ ├── icons8_user_account_50px_2.png
│ ├── icons8_user_groups_50px_1.png
│ ├── icons8_users_50px.png
│ ├── lecturerWindow.png
│ ├── lecturers.png
│ ├── login.png
│ ├── login2.png
│ ├── refresh.png
│ ├── refresh2.png
│ ├── refresh25.png
│ ├── scores.png
│ ├── search.png
│ ├── settings.png
│ ├── students2.png
│ └── telegram.png
├── loginsessions.txt
├── manifest.mf
├── nbproject
├── build-impl.xml
├── genfiles.properties
├── private
│ ├── config.properties
│ └── private.properties
├── project.properties
└── project.xml
└── src
└── main
├── About.form
├── About.java
├── Admin.form
├── Admin.java
├── Books.form
├── Books.java
├── Conn.java
├── LecturerData.form
├── LecturerData.java
├── Login.form
├── Login.java
├── LoginSession.java
├── ScoresForm.form
├── ScoresForm.java
├── SplashScreen.form
├── SplashScreen.java
├── StudentData.form
├── StudentData.java
└── images
├── about.png
├── aboutPage.png
├── admin.png
├── admin2.png
├── adminPage.png
├── books.png
├── close.png
├── home.png
├── icons8_close_50px.png
├── icons8_search_database_50px.png
├── icons8_user_account_50px_1.png
├── icons8_user_account_50px_2.png
├── icons8_user_groups_50px_1.png
├── icons8_users_50px.png
├── lecturerWindow.png
├── lecturers.png
├── login.png
├── login2.png
├── refresh.png
├── refresh2.png
├── refresh25.png
├── scores.png
├── search.png
├── settings.png
├── students2.png
└── telegram.png
/.gitignore:
--------------------------------------------------------------------------------
1 | /nbproject/private/
2 | /build/
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Student Management System
2 |
3 | ## Overview
4 | This project is a Student Management System developed using Java Swing. It is designed to manage and store student information efficiently.
5 | 
6 |
7 | ## Features
8 | - Add, edit, and delete student records.
9 | - Search for students by various filters.
10 | - Generate reports.
11 | - User-friendly GUI.
12 |
13 | ## Installation
14 | ### Prerequisites: Java should be installed on your system.
15 |
16 | #### Step 1: Clone the repository
17 | ```git clone [repository URL]```
18 |
19 | #### Step 2: Navigate to the project directory
20 | ```cd student-management-swing```
21 | ### After starting the application, you can perform the following actions:
22 |
23 | #### Add Student:
24 | Click on 'Add' and fill in the student details.
25 |
26 | #### Edit Information:
27 | Select a student from the list and click 'Edit'.
28 |
29 | #### Delete Student:
30 | Select a student and click 'Delete'.
31 |
32 | #### Search:
33 | Use the search bar to find students.
34 | ## Contributions to this project are welcome. Here are the steps:
35 |
36 | #### Step 1: Fork the repository
37 | #### Step 2: Create a new branch
38 | ```git checkout -b new-feature```
39 |
40 | #### Step 3: Make your changes and commit them
41 | ```git commit -m 'Add some feature'```
42 |
43 | #### Step 4: Push to the branch
44 | ```git push origin new-feature```
45 |
46 | #### Step 5: Submit a pull request
47 |
48 | #### Step 3: Compile the Java files
49 | ```javac *.java```
50 |
51 | #### Step 4: Run the application
52 | ```java Main```
53 |
--------------------------------------------------------------------------------
/build.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Builds, tests, and runs the project Group5.
12 |
13 |
73 |
74 |
--------------------------------------------------------------------------------
/build/classes/.netbeans_automatic_build:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/.netbeans_automatic_build
--------------------------------------------------------------------------------
/build/classes/.netbeans_update_resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/.netbeans_update_resources
--------------------------------------------------------------------------------
/build/classes/main/About$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/About$1.class
--------------------------------------------------------------------------------
/build/classes/main/About$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/About$2.class
--------------------------------------------------------------------------------
/build/classes/main/About.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/About.class
--------------------------------------------------------------------------------
/build/classes/main/About.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
198 |
--------------------------------------------------------------------------------
/build/classes/main/Admin$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$1.class
--------------------------------------------------------------------------------
/build/classes/main/Admin$10.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$10.class
--------------------------------------------------------------------------------
/build/classes/main/Admin$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$2.class
--------------------------------------------------------------------------------
/build/classes/main/Admin$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$3.class
--------------------------------------------------------------------------------
/build/classes/main/Admin$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$4.class
--------------------------------------------------------------------------------
/build/classes/main/Admin$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$5.class
--------------------------------------------------------------------------------
/build/classes/main/Admin$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$6.class
--------------------------------------------------------------------------------
/build/classes/main/Admin$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$7.class
--------------------------------------------------------------------------------
/build/classes/main/Admin$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$8.class
--------------------------------------------------------------------------------
/build/classes/main/Admin$9.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin$9.class
--------------------------------------------------------------------------------
/build/classes/main/Admin.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Admin.class
--------------------------------------------------------------------------------
/build/classes/main/Books$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Books$1.class
--------------------------------------------------------------------------------
/build/classes/main/Books$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Books$2.class
--------------------------------------------------------------------------------
/build/classes/main/Books$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Books$3.class
--------------------------------------------------------------------------------
/build/classes/main/Books.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Books.class
--------------------------------------------------------------------------------
/build/classes/main/Conn.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Conn.class
--------------------------------------------------------------------------------
/build/classes/main/LecturerData$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/LecturerData$1.class
--------------------------------------------------------------------------------
/build/classes/main/LecturerData$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/LecturerData$2.class
--------------------------------------------------------------------------------
/build/classes/main/LecturerData$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/LecturerData$3.class
--------------------------------------------------------------------------------
/build/classes/main/LecturerData$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/LecturerData$4.class
--------------------------------------------------------------------------------
/build/classes/main/LecturerData$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/LecturerData$5.class
--------------------------------------------------------------------------------
/build/classes/main/LecturerData.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/LecturerData.class
--------------------------------------------------------------------------------
/build/classes/main/LecturerData.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
228 |
--------------------------------------------------------------------------------
/build/classes/main/Login$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Login$1.class
--------------------------------------------------------------------------------
/build/classes/main/Login$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Login$2.class
--------------------------------------------------------------------------------
/build/classes/main/Login.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/Login.class
--------------------------------------------------------------------------------
/build/classes/main/Login.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
188 |
--------------------------------------------------------------------------------
/build/classes/main/LoginSession.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/LoginSession.class
--------------------------------------------------------------------------------
/build/classes/main/ScoresForm$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/ScoresForm$1.class
--------------------------------------------------------------------------------
/build/classes/main/ScoresForm$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/ScoresForm$2.class
--------------------------------------------------------------------------------
/build/classes/main/ScoresForm$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/ScoresForm$3.class
--------------------------------------------------------------------------------
/build/classes/main/ScoresForm$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/ScoresForm$4.class
--------------------------------------------------------------------------------
/build/classes/main/ScoresForm$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/ScoresForm$5.class
--------------------------------------------------------------------------------
/build/classes/main/ScoresForm.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/ScoresForm.class
--------------------------------------------------------------------------------
/build/classes/main/ScoresForm.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
270 |
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$1.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$10.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$10.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$2.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$3.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$4.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$5.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$6.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$7.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$8.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen$9.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen$9.class
--------------------------------------------------------------------------------
/build/classes/main/SplashScreen.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/SplashScreen.class
--------------------------------------------------------------------------------
/build/classes/main/StudentData$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/StudentData$1.class
--------------------------------------------------------------------------------
/build/classes/main/StudentData$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/StudentData$2.class
--------------------------------------------------------------------------------
/build/classes/main/StudentData$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/StudentData$3.class
--------------------------------------------------------------------------------
/build/classes/main/StudentData$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/StudentData$4.class
--------------------------------------------------------------------------------
/build/classes/main/StudentData$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/StudentData$5.class
--------------------------------------------------------------------------------
/build/classes/main/StudentData$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/StudentData$6.class
--------------------------------------------------------------------------------
/build/classes/main/StudentData.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/StudentData.class
--------------------------------------------------------------------------------
/build/classes/main/StudentData.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
277 |
--------------------------------------------------------------------------------
/build/classes/main/images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/about.png
--------------------------------------------------------------------------------
/build/classes/main/images/aboutPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/aboutPage.png
--------------------------------------------------------------------------------
/build/classes/main/images/admin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/admin.png
--------------------------------------------------------------------------------
/build/classes/main/images/admin2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/admin2.png
--------------------------------------------------------------------------------
/build/classes/main/images/adminPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/adminPage.png
--------------------------------------------------------------------------------
/build/classes/main/images/books.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/books.png
--------------------------------------------------------------------------------
/build/classes/main/images/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/close.png
--------------------------------------------------------------------------------
/build/classes/main/images/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/home.png
--------------------------------------------------------------------------------
/build/classes/main/images/icons8_close_50px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/icons8_close_50px.png
--------------------------------------------------------------------------------
/build/classes/main/images/icons8_search_database_50px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/icons8_search_database_50px.png
--------------------------------------------------------------------------------
/build/classes/main/images/icons8_user_account_50px_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/icons8_user_account_50px_1.png
--------------------------------------------------------------------------------
/build/classes/main/images/icons8_user_account_50px_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/icons8_user_account_50px_2.png
--------------------------------------------------------------------------------
/build/classes/main/images/icons8_user_groups_50px_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/icons8_user_groups_50px_1.png
--------------------------------------------------------------------------------
/build/classes/main/images/icons8_users_50px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/icons8_users_50px.png
--------------------------------------------------------------------------------
/build/classes/main/images/lecturerWindow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/lecturerWindow.png
--------------------------------------------------------------------------------
/build/classes/main/images/lecturers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/lecturers.png
--------------------------------------------------------------------------------
/build/classes/main/images/login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/login.png
--------------------------------------------------------------------------------
/build/classes/main/images/login2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/login2.png
--------------------------------------------------------------------------------
/build/classes/main/images/refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/refresh.png
--------------------------------------------------------------------------------
/build/classes/main/images/refresh2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/refresh2.png
--------------------------------------------------------------------------------
/build/classes/main/images/refresh25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/refresh25.png
--------------------------------------------------------------------------------
/build/classes/main/images/scores.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/scores.png
--------------------------------------------------------------------------------
/build/classes/main/images/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/search.png
--------------------------------------------------------------------------------
/build/classes/main/images/settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/settings.png
--------------------------------------------------------------------------------
/build/classes/main/images/students2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/students2.png
--------------------------------------------------------------------------------
/build/classes/main/images/telegram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/build/classes/main/images/telegram.png
--------------------------------------------------------------------------------
/loginsessions.txt:
--------------------------------------------------------------------------------
1 | mkuu8@gmail.com,true,student,EB3
2 | nimrodnyongesa@gmail.com,true,student,EB1
3 | mkuu8@gmail.com,true,student,EB3
4 | nimrodnyongesa@gmail.com,true,student,EB1
5 |
--------------------------------------------------------------------------------
/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=05712185
2 | build.xml.script.CRC32=c56725ec
3 | build.xml.stylesheet.CRC32=f85dc8f2@1.104.0.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=05712185
7 | nbproject/build-impl.xml.script.CRC32=130829d3
8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.104.0.48
9 |
--------------------------------------------------------------------------------
/nbproject/private/config.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/nbproject/private/config.properties
--------------------------------------------------------------------------------
/nbproject/private/private.properties:
--------------------------------------------------------------------------------
1 | compile.on.save=true
2 | do.depend=false
3 | do.jar=true
4 | do.jlink=false
5 | javac.debug=true
6 | javadoc.preview=true
7 | jlink.strip=false
8 | user.properties.file=C:\\Users\\Administrator\\AppData\\Roaming\\NetBeans\\15\\build.properties
9 |
--------------------------------------------------------------------------------
/nbproject/project.properties:
--------------------------------------------------------------------------------
1 | annotation.processing.enabled=true
2 | annotation.processing.enabled.in.editor=false
3 | annotation.processing.processors.list=
4 | annotation.processing.run.all.processors=true
5 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
6 | application.title=Group5
7 | application.vendor=Administrator
8 | build.classes.dir=${build.dir}/classes
9 | build.classes.excludes=**/*.java,**/*.form
10 | # This directory is removed when the project is cleaned:
11 | build.dir=build
12 | build.generated.dir=${build.dir}/generated
13 | build.generated.sources.dir=${build.dir}/generated-sources
14 | # Only compile against the classpath explicitly listed here:
15 | build.sysclasspath=ignore
16 | build.test.classes.dir=${build.dir}/test/classes
17 | build.test.results.dir=${build.dir}/test/results
18 | # Uncomment to specify the preferred debugger connection transport:
19 | #debug.transport=dt_socket
20 | debug.classpath=\
21 | ${run.classpath}
22 | debug.modulepath=\
23 | ${run.modulepath}
24 | debug.test.classpath=\
25 | ${run.test.classpath}
26 | debug.test.modulepath=\
27 | ${run.test.modulepath}
28 | # Files in build.classes.dir which should be excluded from distribution jar
29 | dist.archive.excludes=
30 | # This directory is removed when the project is cleaned:
31 | dist.dir=dist
32 | dist.jar=${dist.dir}/Group5.jar
33 | dist.javadoc.dir=${dist.dir}/javadoc
34 | dist.jlink.dir=${dist.dir}/jlink
35 | dist.jlink.output=${dist.jlink.dir}/Group5
36 | endorsed.classpath=
37 | excludes=
38 | file.reference.mysql-connector-j-8.0.32.jar=../../../../../../Program Files (x86)/MySQL/Connector J 8.0/mysql-connector-j-8.0.32.jar
39 | includes=**
40 | jar.compress=false
41 | javac.classpath=\
42 | ${libs.absolutelayout.classpath}:\
43 | ${file.reference.mysql-connector-j-8.0.32.jar}
44 | # Space-separated list of extra javac options
45 | javac.compilerargs=
46 | javac.deprecation=false
47 | javac.external.vm=true
48 | javac.modulepath=
49 | javac.processormodulepath=
50 | javac.processorpath=\
51 | ${javac.classpath}
52 | javac.source=19
53 | javac.target=19
54 | javac.test.classpath=\
55 | ${javac.classpath}:\
56 | ${build.classes.dir}
57 | javac.test.modulepath=\
58 | ${javac.modulepath}
59 | javac.test.processorpath=\
60 | ${javac.test.classpath}
61 | javadoc.additionalparam=
62 | javadoc.author=false
63 | javadoc.encoding=${source.encoding}
64 | javadoc.html5=false
65 | javadoc.noindex=false
66 | javadoc.nonavbar=false
67 | javadoc.notree=false
68 | javadoc.private=false
69 | javadoc.splitindex=true
70 | javadoc.use=true
71 | javadoc.version=false
72 | javadoc.windowtitle=
73 | # The jlink additional root modules to resolve
74 | jlink.additionalmodules=
75 | # The jlink additional command line parameters
76 | jlink.additionalparam=
77 | jlink.launcher=true
78 | jlink.launcher.name=Group5
79 | main.class=main.Login
80 | manifest.file=manifest.mf
81 | meta.inf.dir=${src.dir}/META-INF
82 | mkdist.disabled=false
83 | platform.active=default_platform
84 | run.classpath=\
85 | ${javac.classpath}:\
86 | ${build.classes.dir}
87 | # Space-separated list of JVM arguments used when running the project.
88 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
89 | # To set system properties for unit tests define test-sys-prop.name=value:
90 | run.jvmargs=
91 | run.modulepath=\
92 | ${javac.modulepath}
93 | run.test.classpath=\
94 | ${javac.test.classpath}:\
95 | ${build.test.classes.dir}
96 | run.test.modulepath=\
97 | ${javac.test.modulepath}
98 | source.encoding=UTF-8
99 | src.dir=src
100 | test.src.dir=test
101 |
--------------------------------------------------------------------------------
/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | Group5
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/main/About.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
198 |
--------------------------------------------------------------------------------
/src/main/About.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
4 | */
5 | package main;
6 |
7 | /**
8 | *
9 | * @author Administrator
10 | */
11 | public class About extends javax.swing.JFrame {
12 |
13 | /**
14 | * Creates new form About
15 | */
16 | public About() {
17 | initComponents();
18 | }
19 |
20 | /**
21 | * This method is called from within the constructor to initialize the form.
22 | * WARNING: Do NOT modify this code. The content of this method is always
23 | * regenerated by the Form Editor.
24 | */
25 | @SuppressWarnings("unchecked")
26 | // //GEN-BEGIN:initComponents
27 | private void initComponents() {
28 |
29 | jLabel3 = new javax.swing.JLabel();
30 | jPanel1 = new javax.swing.JPanel();
31 | jPanel2 = new javax.swing.JPanel();
32 | jLabel1 = new javax.swing.JLabel();
33 | jLabel2 = new javax.swing.JLabel();
34 | jLabel4 = new javax.swing.JLabel();
35 | jScrollPane1 = new javax.swing.JScrollPane();
36 | jTextArea1 = new javax.swing.JTextArea();
37 |
38 | jLabel3.setText("jLabel3");
39 |
40 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
41 |
42 | jPanel1.setBackground(new java.awt.Color(255, 255, 255));
43 |
44 | jPanel2.setBackground(new java.awt.Color(223, 49, 80));
45 |
46 | jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 36)); // NOI18N
47 | jLabel1.setForeground(new java.awt.Color(255, 255, 255));
48 | jLabel1.setText("ABOUT");
49 |
50 | jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/main/images/aboutPage.png"))); // NOI18N
51 |
52 | jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/main/images/close.png"))); // NOI18N
53 | jLabel4.addMouseListener(new java.awt.event.MouseAdapter() {
54 | public void mousePressed(java.awt.event.MouseEvent evt) {
55 | jLabel4MousePressed(evt);
56 | }
57 | });
58 |
59 | javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
60 | jPanel2.setLayout(jPanel2Layout);
61 | jPanel2Layout.setHorizontalGroup(
62 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
63 | .addGroup(jPanel2Layout.createSequentialGroup()
64 | .addGap(106, 106, 106)
65 | .addComponent(jLabel2)
66 | .addGap(18, 18, 18)
67 | .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)
68 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
69 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
70 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
71 | .addComponent(jLabel4)
72 | .addGap(48, 48, 48))
73 | );
74 | jPanel2Layout.setVerticalGroup(
75 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
76 | .addGroup(jPanel2Layout.createSequentialGroup()
77 | .addGap(22, 22, 22)
78 | .addComponent(jLabel4)
79 | .addGap(34, 34, 34)
80 | .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
81 | .addComponent(jLabel2)
82 | .addComponent(jLabel1))
83 | .addContainerGap(74, Short.MAX_VALUE))
84 | );
85 |
86 | jScrollPane1.setBorder(null);
87 | jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
88 | jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
89 | jScrollPane1.setHorizontalScrollBar(null);
90 |
91 | jTextArea1.setEditable(false);
92 | jTextArea1.setBackground(new java.awt.Color(255, 255, 255));
93 | jTextArea1.setColumns(5);
94 | jTextArea1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
95 | jTextArea1.setLineWrap(true);
96 | jTextArea1.setRows(5);
97 | jTextArea1.setText("Welcome to Waanzilishi, the ultimate student management system designed to streamline and simplify academic processes. Our system, built using Java Swing and AWT technologies, offers a comprehensive range of features that cater to the needs of educational institutions of all sizes. With Waanzilishi, you can easily manage student records, track attendance, generate reports, and automate administrative tasks, saving time and increasing productivity. Our intuitive user interface and user-friendly design make it easy to navigate and use, ensuring that you and your team can focus on what matters most - educating and empowering students. Whether you're a teacher, administrator, or a member of the support staff, Waanzilishi is the ideal solution for managing student data efficiently and effectively. Join the Waanzilishi community today and experience the power of technology in education management!");
98 | jTextArea1.setWrapStyleWord(true);
99 | jTextArea1.setAutoscrolls(false);
100 | jTextArea1.setBorder(null);
101 | jTextArea1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
102 | jTextArea1.setMargin(new java.awt.Insets(10, 10, 10, 10));
103 | jTextArea1.setPreferredSize(new java.awt.Dimension(200, 400));
104 | jScrollPane1.setViewportView(jTextArea1);
105 |
106 | javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
107 | jPanel1.setLayout(jPanel1Layout);
108 | jPanel1Layout.setHorizontalGroup(
109 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
110 | .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
111 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
112 | .addContainerGap(115, Short.MAX_VALUE)
113 | .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 628, javax.swing.GroupLayout.PREFERRED_SIZE)
114 | .addGap(67, 67, 67))
115 | );
116 | jPanel1Layout.setVerticalGroup(
117 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
118 | .addGroup(jPanel1Layout.createSequentialGroup()
119 | .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
120 | .addGap(18, 18, 18)
121 | .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)
122 | .addGap(12, 12, 12))
123 | );
124 |
125 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
126 | getContentPane().setLayout(layout);
127 | layout.setHorizontalGroup(
128 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
129 | .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
130 | );
131 | layout.setVerticalGroup(
132 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
133 | .addGroup(layout.createSequentialGroup()
134 | .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
135 | .addContainerGap())
136 | );
137 |
138 | pack();
139 | }// //GEN-END:initComponents
140 |
141 | private void jLabel4MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel4MousePressed
142 | // TODO add your handling code here:
143 | this.setVisible(false);
144 | new SplashScreen().show();
145 | }//GEN-LAST:event_jLabel4MousePressed
146 |
147 | /**
148 | * @param args the command line arguments
149 | */
150 | public static void main(String args[]) {
151 | /* Set the Nimbus look and feel */
152 | //
153 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
154 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
155 | */
156 | try {
157 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
158 | if ("Nimbus".equals(info.getName())) {
159 | javax.swing.UIManager.setLookAndFeel(info.getClassName());
160 | break;
161 | }
162 | }
163 | } catch (ClassNotFoundException ex) {
164 | java.util.logging.Logger.getLogger(About.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
165 | } catch (InstantiationException ex) {
166 | java.util.logging.Logger.getLogger(About.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
167 | } catch (IllegalAccessException ex) {
168 | java.util.logging.Logger.getLogger(About.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
169 | } catch (javax.swing.UnsupportedLookAndFeelException ex) {
170 | java.util.logging.Logger.getLogger(About.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
171 | }
172 | //
173 |
174 | /* Create and display the form */
175 | java.awt.EventQueue.invokeLater(new Runnable() {
176 | public void run() {
177 | new About().setVisible(true);
178 | }
179 | });
180 | }
181 |
182 | // Variables declaration - do not modify//GEN-BEGIN:variables
183 | private javax.swing.JLabel jLabel1;
184 | private javax.swing.JLabel jLabel2;
185 | private javax.swing.JLabel jLabel3;
186 | private javax.swing.JLabel jLabel4;
187 | private javax.swing.JPanel jPanel1;
188 | private javax.swing.JPanel jPanel2;
189 | private javax.swing.JScrollPane jScrollPane1;
190 | private javax.swing.JTextArea jTextArea1;
191 | // End of variables declaration//GEN-END:variables
192 | }
193 |
--------------------------------------------------------------------------------
/src/main/Conn.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package main;
6 | import java.sql.*;
7 |
8 | /**
9 | *
10 | * @author Administrator
11 | */
12 | public class Conn {
13 | Connection c;
14 | Statement s;
15 |
16 | public Conn(){
17 | try{
18 | Class.forName("com.mysql.cj.jdbc.Driver");
19 | c = DriverManager.getConnection("jdbc:mysql://localhost:3306/studentManagementSystem","nimrod","12@17y017g3sa?");
20 | s = c.createStatement();
21 | }
22 | catch(Exception e){
23 | System.out.println(e);
24 | }
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/LecturerData.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
228 |
--------------------------------------------------------------------------------
/src/main/LecturerData.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
4 | */
5 | package main;
6 |
7 | import java.sql.ResultSet;
8 | import javax.swing.table.DefaultTableModel;
9 | import javax.swing.*;
10 |
11 | /**
12 | *
13 | * @author Administrator
14 | */
15 | public class LecturerData extends javax.swing.JFrame {
16 |
17 | /**
18 | * Creates new form StudentData
19 | */
20 | public LecturerData() {
21 | initComponents();
22 | }
23 |
24 | /**
25 | * This method is called from within the constructor to initialize the form.
26 | * WARNING: Do NOT modify this code. The content of this method is always
27 | * regenerated by the Form Editor.
28 | */
29 | @SuppressWarnings("unchecked")
30 | // //GEN-BEGIN:initComponents
31 | private void initComponents() {
32 |
33 | jPanel1 = new javax.swing.JPanel();
34 | jPanel2 = new javax.swing.JPanel();
35 | jLabel2 = new javax.swing.JLabel();
36 | jLabel1 = new javax.swing.JLabel();
37 | jLabel3 = new javax.swing.JLabel();
38 | jPanel3 = new javax.swing.JPanel();
39 | lecturerTableData = new javax.swing.JScrollPane();
40 | jTable1 = new javax.swing.JTable();
41 | updateScores = new javax.swing.JButton();
42 | courses = new javax.swing.JButton();
43 |
44 | setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
45 |
46 | jPanel1.setBackground(new java.awt.Color(255, 255, 255));
47 |
48 | jPanel2.setBackground(new java.awt.Color(223, 49, 80));
49 |
50 | jLabel2.setFont(new java.awt.Font("Segoe UI", 1, 36)); // NOI18N
51 | jLabel2.setForeground(new java.awt.Color(255, 255, 255));
52 | jLabel2.setText(" Lecturer");
53 |
54 | jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/main/images/lecturerWindow.png"))); // NOI18N
55 |
56 | jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/main/images/close.png"))); // NOI18N
57 | jLabel3.addMouseListener(new java.awt.event.MouseAdapter() {
58 | public void mousePressed(java.awt.event.MouseEvent evt) {
59 | jLabel3MousePressed(evt);
60 | }
61 | });
62 |
63 | javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
64 | jPanel2.setLayout(jPanel2Layout);
65 | jPanel2Layout.setHorizontalGroup(
66 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
67 | .addGroup(jPanel2Layout.createSequentialGroup()
68 | .addGap(63, 63, 63)
69 | .addComponent(jLabel1)
70 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
71 | .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
72 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
73 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
74 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
75 | .addComponent(jLabel3)
76 | .addGap(27, 27, 27))
77 | );
78 | jPanel2Layout.setVerticalGroup(
79 | jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
80 | .addGroup(jPanel2Layout.createSequentialGroup()
81 | .addGap(17, 17, 17)
82 | .addComponent(jLabel3)
83 | .addGap(3, 3, 3)
84 | .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
85 | .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
86 | .addComponent(jLabel2))
87 | .addContainerGap(89, Short.MAX_VALUE))
88 | );
89 |
90 | jTable1.setModel(new javax.swing.table.DefaultTableModel(
91 | new Object [][] {
92 | {null, null, null, null},
93 | {null, null, null, null},
94 | {null, null, null, null},
95 | {null, null, null, null}
96 | },
97 | new String [] {
98 | "Title 1", "Title 2", "Title 3", "Title 4"
99 | }
100 | ));
101 | lecturerTableData.setViewportView(jTable1);
102 |
103 | updateScores.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N
104 | updateScores.setForeground(new java.awt.Color(223, 49, 80));
105 | updateScores.setText("Update Scores");
106 | updateScores.addMouseListener(new java.awt.event.MouseAdapter() {
107 | public void mousePressed(java.awt.event.MouseEvent evt) {
108 | updateScoresMousePressed(evt);
109 | }
110 | });
111 | updateScores.addKeyListener(new java.awt.event.KeyAdapter() {
112 | public void keyPressed(java.awt.event.KeyEvent evt) {
113 | updateScoresKeyPressed(evt);
114 | }
115 | });
116 |
117 | courses.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N
118 | courses.setForeground(new java.awt.Color(223, 49, 80));
119 | courses.setText("Courses");
120 | courses.addMouseListener(new java.awt.event.MouseAdapter() {
121 | public void mousePressed(java.awt.event.MouseEvent evt) {
122 | coursesMousePressed(evt);
123 | }
124 | });
125 |
126 | javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
127 | jPanel3.setLayout(jPanel3Layout);
128 | jPanel3Layout.setHorizontalGroup(
129 | jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
130 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
131 | .addGap(0, 13, Short.MAX_VALUE)
132 | .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
133 | .addComponent(updateScores, javax.swing.GroupLayout.Alignment.TRAILING)
134 | .addComponent(courses, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))
135 | .addGap(18, 18, 18)
136 | .addComponent(lecturerTableData, javax.swing.GroupLayout.PREFERRED_SIZE, 630, javax.swing.GroupLayout.PREFERRED_SIZE))
137 | );
138 | jPanel3Layout.setVerticalGroup(
139 | jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
140 | .addGroup(jPanel3Layout.createSequentialGroup()
141 | .addContainerGap()
142 | .addComponent(lecturerTableData, javax.swing.GroupLayout.DEFAULT_SIZE, 461, Short.MAX_VALUE)
143 | .addContainerGap())
144 | .addGroup(jPanel3Layout.createSequentialGroup()
145 | .addGap(36, 36, 36)
146 | .addComponent(updateScores, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
147 | .addGap(18, 18, 18)
148 | .addComponent(courses, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
149 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
150 | );
151 |
152 | javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
153 | jPanel1.setLayout(jPanel1Layout);
154 | jPanel1Layout.setHorizontalGroup(
155 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
156 | .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
157 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
158 | .addGap(0, 77, Short.MAX_VALUE)
159 | .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
160 | );
161 | jPanel1Layout.setVerticalGroup(
162 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
163 | .addGroup(jPanel1Layout.createSequentialGroup()
164 | .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
165 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
166 | .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
167 | .addContainerGap())
168 | );
169 |
170 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
171 | getContentPane().setLayout(layout);
172 | layout.setHorizontalGroup(
173 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
174 | .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
175 | );
176 | layout.setVerticalGroup(
177 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
178 | .addGroup(layout.createSequentialGroup()
179 | .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
180 | .addGap(0, 0, Short.MAX_VALUE))
181 | );
182 |
183 | pack();
184 | }// //GEN-END:initComponents
185 |
186 | private void updateScoresMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateScoresMousePressed
187 | // TODO add your handling code here:
188 | // Open the submission form and fill the details
189 | // On submit button clicked update the data in the database
190 | // new ScoresForm().show()
191 | // String query = "UPDATE scores SET score = , regNo=, serailNo= courseID= type="
192 | this.setVisible(false);
193 | new ScoresForm().show();
194 | }//GEN-LAST:event_updateScoresMousePressed
195 |
196 | private void updateScoresKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_updateScoresKeyPressed
197 | // TODO add your handling code here:
198 | }//GEN-LAST:event_updateScoresKeyPressed
199 |
200 | private void jLabel3MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel3MousePressed
201 | // TODO add your handling code here:
202 | this.setVisible(false);
203 | new SplashScreen().show();
204 | }//GEN-LAST:event_jLabel3MousePressed
205 |
206 | private void coursesMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_coursesMousePressed
207 | // TODO add your handling code here:
208 | DefaultTableModel model = (DefaultTableModel) jTable1.getModel();
209 | String [] cols = {"ALLOCATION ID", "NAME"};
210 | model.setColumnIdentifiers(cols);
211 | String programID = "EB1/12";
212 |
213 | model.setRowCount(0);
214 |
215 |
216 | try{
217 | Conn newConnection = new Conn();
218 | String query1 = "SELECT * FROM leccourseallocation WHERE serialNo='EB1/12'";
219 | ResultSet rs7 = newConnection.s.executeQuery(query1);
220 |
221 | while(rs7.next()){
222 | String allocID = rs7.getString("allocID");
223 | String name = rs7.getString("courseID");
224 |
225 | model.addRow(new Object[] {allocID, name});
226 |
227 | // Using format specifiers in java
228 | System.out.format("%s,%s\n", allocID, name);
229 | }
230 | rs7.close();
231 | }
232 | catch(Exception e){
233 | System.out.println(e);
234 | }
235 | }//GEN-LAST:event_coursesMousePressed
236 |
237 | /**
238 | * @param args the command line arguments
239 | */
240 | public static void main(String args[]) {
241 | /* Set the Nimbus look and feel */
242 | //
243 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
244 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
245 | */
246 | try {
247 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
248 | if ("Nimbus".equals(info.getName())) {
249 | javax.swing.UIManager.setLookAndFeel(info.getClassName());
250 | break;
251 | }
252 | }
253 | } catch (ClassNotFoundException ex) {
254 | java.util.logging.Logger.getLogger(StudentData.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
255 | } catch (InstantiationException ex) {
256 | java.util.logging.Logger.getLogger(StudentData.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
257 | } catch (IllegalAccessException ex) {
258 | java.util.logging.Logger.getLogger(StudentData.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
259 | } catch (javax.swing.UnsupportedLookAndFeelException ex) {
260 | java.util.logging.Logger.getLogger(StudentData.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
261 | }
262 | //
263 |
264 | /* Create and display the form */
265 | java.awt.EventQueue.invokeLater(new Runnable() {
266 | public void run() {
267 | new StudentData().setVisible(true);
268 | }
269 | });
270 | }
271 |
272 | // Variables declaration - do not modify//GEN-BEGIN:variables
273 | private javax.swing.JButton courses;
274 | private javax.swing.JLabel jLabel1;
275 | private javax.swing.JLabel jLabel2;
276 | private javax.swing.JLabel jLabel3;
277 | private javax.swing.JPanel jPanel1;
278 | private javax.swing.JPanel jPanel2;
279 | private javax.swing.JPanel jPanel3;
280 | private javax.swing.JTable jTable1;
281 | private javax.swing.JScrollPane lecturerTableData;
282 | private javax.swing.JButton updateScores;
283 | // End of variables declaration//GEN-END:variables
284 | }
285 |
--------------------------------------------------------------------------------
/src/main/Login.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
188 |
--------------------------------------------------------------------------------
/src/main/LoginSession.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4 | */
5 | package main;
6 | import java.util.Random;
7 |
8 | /**
9 | *
10 | * @author Administrator
11 | */
12 | public class LoginSession {
13 | public boolean login = false;
14 | public String email;
15 | public String userID;
16 |
17 | public void setLoginCredentials(boolean state, String email){
18 | this.login = state;
19 | this.email = email;
20 | this.userID = generateUserID();
21 | }
22 | public String generateUserID(){
23 | Random random = new Random();
24 | return "'"+random.nextInt()+"'";
25 | }
26 | public String getLoginUserID(){
27 | return this.userID;
28 | }
29 | public boolean getLoginState(){
30 | return this.login;
31 | }
32 | public String getLoginEmail(){
33 | return this.email;
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/src/main/ScoresForm.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
270 |
--------------------------------------------------------------------------------
/src/main/ScoresForm.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3 | * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
4 | */
5 | package main;
6 |
7 | import java.sql.ResultSet;
8 | import java.util.Random;
9 | import javax.swing.*;
10 |
11 | /**
12 | *
13 | * @author Administrator
14 | */
15 | public class ScoresForm extends javax.swing.JFrame {
16 |
17 | /**
18 | * Creates new form ScoresForm
19 | */
20 | public ScoresForm() {
21 | initComponents();
22 | }
23 |
24 | /**
25 | * This method is called from within the constructor to initialize the form.
26 | * WARNING: Do NOT modify this code. The content of this method is always
27 | * regenerated by the Form Editor.
28 | */
29 | @SuppressWarnings("unchecked")
30 | // //GEN-BEGIN:initComponents
31 | private void initComponents() {
32 |
33 | scoresBackground = new javax.swing.JPanel();
34 | jPanel1 = new javax.swing.JPanel();
35 | jLabel2 = new javax.swing.JLabel();
36 | jLabel3 = new javax.swing.JLabel();
37 | jLabel1 = new javax.swing.JLabel();
38 | jLabel4 = new javax.swing.JLabel();
39 | regInput = new javax.swing.JTextField();
40 | regLabel = new javax.swing.JLabel();
41 | serialLabel = new javax.swing.JLabel();
42 | courseLabel = new javax.swing.JLabel();
43 | scoreLabel = new javax.swing.JLabel();
44 | scoreInput = new javax.swing.JTextField();
45 | typeLabel = new javax.swing.JLabel();
46 | chooseType = new java.awt.Choice();
47 | addScore = new javax.swing.JButton();
48 | courseInput = new java.awt.Choice();
49 | serialInput = new java.awt.Choice();
50 |
51 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
52 | addComponentListener(new java.awt.event.ComponentAdapter() {
53 | public void componentShown(java.awt.event.ComponentEvent evt) {
54 | formComponentShown(evt);
55 | }
56 | });
57 |
58 | scoresBackground.setBackground(new java.awt.Color(255, 255, 255));
59 |
60 | jPanel1.setBackground(new java.awt.Color(223, 49, 80));
61 |
62 | jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/main/images/scores.png"))); // NOI18N
63 |
64 | jLabel3.setFont(new java.awt.Font("Segoe UI", 1, 36)); // NOI18N
65 | jLabel3.setForeground(new java.awt.Color(255, 255, 255));
66 | jLabel3.setText("Scores Form");
67 |
68 | jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/main/images/close.png"))); // NOI18N
69 | jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
70 | public void mousePressed(java.awt.event.MouseEvent evt) {
71 | jLabel1MousePressed(evt);
72 | }
73 | });
74 |
75 | jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/main/images/refresh25.png"))); // NOI18N
76 | jLabel4.addMouseListener(new java.awt.event.MouseAdapter() {
77 | public void mousePressed(java.awt.event.MouseEvent evt) {
78 | jLabel4MousePressed(evt);
79 | }
80 | });
81 |
82 | javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
83 | jPanel1.setLayout(jPanel1Layout);
84 | jPanel1Layout.setHorizontalGroup(
85 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
86 | .addGroup(jPanel1Layout.createSequentialGroup()
87 | .addGap(71, 71, 71)
88 | .addComponent(jLabel2)
89 | .addGap(18, 18, 18)
90 | .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)
91 | .addContainerGap(407, Short.MAX_VALUE))
92 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
93 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
94 | .addComponent(jLabel4)
95 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
96 | .addComponent(jLabel1)
97 | .addGap(30, 30, 30))
98 | );
99 | jPanel1Layout.setVerticalGroup(
100 | jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
101 | .addGroup(jPanel1Layout.createSequentialGroup()
102 | .addGap(19, 19, 19)
103 | .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
104 | .addComponent(jLabel1)
105 | .addComponent(jLabel4))
106 | .addGap(30, 30, 30)
107 | .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
108 | .addComponent(jLabel3)
109 | .addComponent(jLabel2))
110 | .addContainerGap(84, Short.MAX_VALUE))
111 | );
112 |
113 | regInput.addActionListener(new java.awt.event.ActionListener() {
114 | public void actionPerformed(java.awt.event.ActionEvent evt) {
115 | regInputActionPerformed(evt);
116 | }
117 | });
118 |
119 | regLabel.setText("RegNo");
120 |
121 | serialLabel.setText("SerialNo");
122 |
123 | courseLabel.setText("Course ID");
124 |
125 | scoreLabel.setText("Score");
126 |
127 | typeLabel.setText("Type");
128 |
129 | chooseType.setName(""); // NOI18N
130 |
131 | addScore.setBackground(new java.awt.Color(223, 49, 80));
132 | addScore.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N
133 | addScore.setForeground(new java.awt.Color(255, 255, 255));
134 | addScore.setText("Add score");
135 | addScore.addMouseListener(new java.awt.event.MouseAdapter() {
136 | public void mousePressed(java.awt.event.MouseEvent evt) {
137 | addScoreMousePressed(evt);
138 | }
139 | });
140 |
141 | javax.swing.GroupLayout scoresBackgroundLayout = new javax.swing.GroupLayout(scoresBackground);
142 | scoresBackground.setLayout(scoresBackgroundLayout);
143 | scoresBackgroundLayout.setHorizontalGroup(
144 | scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
145 | .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
146 | .addGroup(scoresBackgroundLayout.createSequentialGroup()
147 | .addGap(74, 74, 74)
148 | .addGroup(scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
149 | .addComponent(addScore, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
150 | .addGroup(scoresBackgroundLayout.createSequentialGroup()
151 | .addGroup(scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
152 | .addComponent(regLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
153 | .addComponent(serialLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
154 | .addComponent(courseLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 74, Short.MAX_VALUE)
155 | .addComponent(scoreLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
156 | .addComponent(typeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
157 | .addGap(29, 29, 29)
158 | .addGroup(scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
159 | .addComponent(regInput)
160 | .addComponent(scoreInput, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
161 | .addComponent(chooseType, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
162 | .addComponent(courseInput, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
163 | .addComponent(serialInput, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
164 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
165 | );
166 | scoresBackgroundLayout.setVerticalGroup(
167 | scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
168 | .addGroup(scoresBackgroundLayout.createSequentialGroup()
169 | .addGroup(scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
170 | .addGroup(scoresBackgroundLayout.createSequentialGroup()
171 | .addGroup(scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
172 | .addGroup(scoresBackgroundLayout.createSequentialGroup()
173 | .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
174 | .addGap(52, 52, 52)
175 | .addComponent(regInput, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
176 | .addComponent(regLabel))
177 | .addGap(31, 31, 31)
178 | .addComponent(serialInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
179 | .addComponent(serialLabel))
180 | .addGap(32, 32, 32)
181 | .addGroup(scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
182 | .addComponent(courseLabel)
183 | .addComponent(courseInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
184 | .addGap(18, 18, 18)
185 | .addGroup(scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
186 | .addComponent(scoreLabel)
187 | .addComponent(scoreInput, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
188 | .addGap(18, 18, 18)
189 | .addGroup(scoresBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
190 | .addComponent(typeLabel)
191 | .addComponent(chooseType, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
192 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
193 | .addComponent(addScore, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
194 | .addContainerGap())
195 | );
196 |
197 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
198 | getContentPane().setLayout(layout);
199 | layout.setHorizontalGroup(
200 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
201 | .addGroup(layout.createSequentialGroup()
202 | .addComponent(scoresBackground, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
203 | .addGap(0, 0, Short.MAX_VALUE))
204 | );
205 | layout.setVerticalGroup(
206 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
207 | .addGroup(layout.createSequentialGroup()
208 | .addComponent(scoresBackground, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
209 | .addGap(0, 32, Short.MAX_VALUE))
210 | );
211 |
212 | pack();
213 | }// //GEN-END:initComponents
214 |
215 | private void regInputActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_regInputActionPerformed
216 | // TODO add your handling code here:
217 | }//GEN-LAST:event_regInputActionPerformed
218 |
219 | private void addScoreMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addScoreMousePressed
220 | // TODO add your handling code here:
221 | addStudentScore();
222 | }//GEN-LAST:event_addScoreMousePressed
223 |
224 | private void formComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentShown
225 | // TODO add your handling code here:
226 | this.chooseType.add("CAT");
227 | this.chooseType.add("EXAM");
228 | addCourseOptions();
229 | addSerialOptions();
230 |
231 | }//GEN-LAST:event_formComponentShown
232 |
233 | private void jLabel1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel1MousePressed
234 | // TODO add your handling code here:
235 | this.setVisible(false);
236 | new LecturerData().show();
237 | }//GEN-LAST:event_jLabel1MousePressed
238 |
239 | private void jLabel4MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel4MousePressed
240 | // TODO add your handling code here:
241 | this.courseInput.removeAll();
242 | this.serialInput.removeAll();
243 | addCourseOptions();
244 | addSerialOptions();
245 | }//GEN-LAST:event_jLabel4MousePressed
246 | public void addStudentScore(){
247 | // Create random values to insert into scoresID field
248 | Random random = new Random();
249 | //random.toString();
250 | try{
251 | Conn newConnection = new Conn();
252 | String addScore = "INSERT INTO scores VALUES("+"'"+random.nextInt(100000)+"'"+","+"'"+this.regInput.getText()+"'"+","+"'"+this.serialInput.getSelectedItem()+"'"+","+"'"+this.courseInput.getSelectedItem()+"'"+","+this.scoreInput.getText()+","+"'"+this.chooseType.getSelectedItem()+"'"+")" ;
253 | newConnection.s.executeUpdate(addScore);
254 | JOptionPane.showMessageDialog(this, "scores for"+this.regInput.getText()+"added successfully");
255 | }
256 | catch(Exception e){
257 | System.out.println(e);
258 | }
259 | }
260 | public void addCourseOptions(){
261 | try{
262 | Conn newConnection = new Conn();
263 | String query1 = "SELECT * FROM courses";
264 | ResultSet rs4 = newConnection.s.executeQuery(query1);
265 |
266 | while(rs4.next()){
267 | this.courseInput.add(rs4.getString("courseID"));
268 |
269 | }
270 | rs4.close();
271 | }
272 | catch(Exception e){
273 | System.out.println(e);
274 | }
275 | }
276 | public void addSerialOptions(){
277 | try{
278 | Conn newConnection = new Conn();
279 | String query1 = "SELECT * FROM lecturer";
280 | ResultSet rs4 = newConnection.s.executeQuery(query1);
281 |
282 | while(rs4.next()){
283 | this.serialInput.add(rs4.getString("serialNo"));
284 |
285 | }
286 | rs4.close();
287 | }
288 | catch(Exception e){
289 | System.out.println(e);
290 | }
291 | }
292 | /**
293 | * @param args the command line arguments
294 | */
295 | public static void main(String args[]) {
296 | /* Set the Nimbus look and feel */
297 | //
298 | /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
299 | * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
300 | */
301 | try {
302 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
303 | if ("Nimbus".equals(info.getName())) {
304 | javax.swing.UIManager.setLookAndFeel(info.getClassName());
305 | break;
306 | }
307 | }
308 | } catch (ClassNotFoundException ex) {
309 | java.util.logging.Logger.getLogger(ScoresForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
310 | } catch (InstantiationException ex) {
311 | java.util.logging.Logger.getLogger(ScoresForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
312 | } catch (IllegalAccessException ex) {
313 | java.util.logging.Logger.getLogger(ScoresForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
314 | } catch (javax.swing.UnsupportedLookAndFeelException ex) {
315 | java.util.logging.Logger.getLogger(ScoresForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
316 | }
317 | //
318 |
319 | /* Create and display the form */
320 | java.awt.EventQueue.invokeLater(new Runnable() {
321 | public void run() {
322 | new ScoresForm().setVisible(true);
323 | }
324 | });
325 | }
326 |
327 | // Variables declaration - do not modify//GEN-BEGIN:variables
328 | private javax.swing.JButton addScore;
329 | private java.awt.Choice chooseType;
330 | private java.awt.Choice courseInput;
331 | private javax.swing.JLabel courseLabel;
332 | private javax.swing.JLabel jLabel1;
333 | private javax.swing.JLabel jLabel2;
334 | private javax.swing.JLabel jLabel3;
335 | private javax.swing.JLabel jLabel4;
336 | private javax.swing.JPanel jPanel1;
337 | private javax.swing.JTextField regInput;
338 | private javax.swing.JLabel regLabel;
339 | private javax.swing.JTextField scoreInput;
340 | private javax.swing.JLabel scoreLabel;
341 | private javax.swing.JPanel scoresBackground;
342 | private java.awt.Choice serialInput;
343 | private javax.swing.JLabel serialLabel;
344 | private javax.swing.JLabel typeLabel;
345 | // End of variables declaration//GEN-END:variables
346 | }
347 |
--------------------------------------------------------------------------------
/src/main/StudentData.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
277 |
--------------------------------------------------------------------------------
/src/main/images/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/about.png
--------------------------------------------------------------------------------
/src/main/images/aboutPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/aboutPage.png
--------------------------------------------------------------------------------
/src/main/images/admin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/admin.png
--------------------------------------------------------------------------------
/src/main/images/admin2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/admin2.png
--------------------------------------------------------------------------------
/src/main/images/adminPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/adminPage.png
--------------------------------------------------------------------------------
/src/main/images/books.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/books.png
--------------------------------------------------------------------------------
/src/main/images/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/close.png
--------------------------------------------------------------------------------
/src/main/images/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/home.png
--------------------------------------------------------------------------------
/src/main/images/icons8_close_50px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/icons8_close_50px.png
--------------------------------------------------------------------------------
/src/main/images/icons8_search_database_50px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/icons8_search_database_50px.png
--------------------------------------------------------------------------------
/src/main/images/icons8_user_account_50px_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/icons8_user_account_50px_1.png
--------------------------------------------------------------------------------
/src/main/images/icons8_user_account_50px_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/icons8_user_account_50px_2.png
--------------------------------------------------------------------------------
/src/main/images/icons8_user_groups_50px_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/icons8_user_groups_50px_1.png
--------------------------------------------------------------------------------
/src/main/images/icons8_users_50px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/icons8_users_50px.png
--------------------------------------------------------------------------------
/src/main/images/lecturerWindow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/lecturerWindow.png
--------------------------------------------------------------------------------
/src/main/images/lecturers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/lecturers.png
--------------------------------------------------------------------------------
/src/main/images/login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/login.png
--------------------------------------------------------------------------------
/src/main/images/login2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/login2.png
--------------------------------------------------------------------------------
/src/main/images/refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/refresh.png
--------------------------------------------------------------------------------
/src/main/images/refresh2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/refresh2.png
--------------------------------------------------------------------------------
/src/main/images/refresh25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/refresh25.png
--------------------------------------------------------------------------------
/src/main/images/scores.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/scores.png
--------------------------------------------------------------------------------
/src/main/images/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/search.png
--------------------------------------------------------------------------------
/src/main/images/settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/settings.png
--------------------------------------------------------------------------------
/src/main/images/students2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/students2.png
--------------------------------------------------------------------------------
/src/main/images/telegram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/victorpreston/studentManagementSystem/d9683f8d1fd562391c1e188a369e1d6209afdeac/src/main/images/telegram.png
--------------------------------------------------------------------------------