A Java Swing application for managing student registration and administration.
The system provides separate interfaces for Admins and Students, allowing secure login, course registration, grade management, and student search.
The application includes:
- Login Page – Secure login with username, password, and user type (Admin or Student).
- Admin Dashboard – Manage students, insert grades, and search records.
- Student Dashboard – Register for courses, view results, and calculate GPA.
- Database Integration – MySQL backend for data storage and retrieval.
Built with Java Swing (GUI) and JDBC (MySQL) for connectivity.
StudentRegistrationApp/
├── src/
│ ├── LoginPage.java # Login interface
│ ├── SStudentDataEntryApp.java # Admin dashboard
│ ├── StudentRegistrationPanel.java # Student registration form
│ ├── StudentDataEntryPanel.java # Grade insertion/updating
│ ├── StudentSearchPanel.java # Student search functionality
│ └── StudentResultsPanel.java # Student GPA/results view
├── database/
│ └── studentregistration.sql # Database schema (tables, sample data)
├── README.md # Documentation
└── lib/ # JDBC driver (if required)
- User enters username, password, and selects role (Admin / Student).
- Uses
JPasswordFieldfor secure password handling. - Prevents SQL injection with
PreparedStatement.
- Insert/Update Grades – Assign or modify student grades.
- Register Students – Add new students with personal and academic details.
- Search Students – Find students by ID and display results in a table.
- Logout – Secure exit with confirmation dialog.
- Register for Courses – Select department, semester, and courses.
- View Results – Display registered courses, grades, and GPA calculation.
- Logout – Securely log out of the system.
- Install MySQL Server locally.
- Create a database:
CREATE DATABASE studentregistration;- Import schema from:
mysql -u root -p studentregistration < database/studentregistration.sql- Update database credentials in source code (e.g.,
DB_URL,USER,PASSWORD).
- Compile the code:
javac -cp .;lib/mysql-connector-j.jar src/*.java- Run the application:
java -cp .;lib/mysql-connector-j.jar src.LoginPage- Login as Admin or Student:
- Admin → access dashboard to manage student data.
- Student → register for courses and view results.
- Ensure the MySQL service is running before launching the app.
- All sensitive data (like passwords) should be handled securely.
- This system is intended as a learning/demo project – production usage requires stronger security.
Developed by Abdallah Abdurazak
Project demonstrates concepts in Java Swing, JDBC, and MySQL database integration.
This project is open for educational use. You are free to modify and extend it.