A desktop application for managing student records with a graphical user interface built using Java Swing and MySQL database. This system allows users to perform CRUD (Create, Read, Update, Delete) operations on student data including ID, name, major, phone, GPA, and date of birth.
- 📝 Add, update, and delete student records
- 📊 View all student data in a table format
- 🔍 Search and filter student information
- 🗄️ MySQL database backend for persistent storage
- 🖥️ Simple and intuitive GUI using Java Swing
- Java 8 or higher
- MySQL Server
- MySQL Connector/J (already included in
lib/)
- Clone this repository.
- Import
student_data.sqlinto your MySQL server to create the database and table. - Edit
db.propertieswith your MySQL credentials. - Compile and run:
cd Student-Management-System-in-Java-main
javac -cp "lib/mysql-connector-j-8.0.33.jar" -d out src/*.java
java -cp "out;lib/mysql-connector-j-8.0.33.jar" Mainsrc/- Java source fileslib/- MySQL JDBC driverstudent_data.sql- SQL script to create the databasedb.properties- Database configuration (not committed)
The students table includes the following columns:
| Column | Type | Description |
|---|---|---|
| Student_ID | INT | Unique identifier for each student |
| first_name | VARCHAR | Student's first name |
| last_name | VARCHAR | Student's last name |
| major | VARCHAR | Student's field of study |
| Phone | VARCHAR | Contact phone number |
| GPA | DECIMAL | Grade point average |
| DOB | DATE | Date of birth |
- Java - Core programming language
- Java Swing - GUI framework
- MySQL - Database management system
- JDBC - Database connectivity
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.