A desktop CRUD application for managing student enrollments at a university, built with Java Swing and raw JDBC connecting to a MySQL database.
- Register students with full personal and medical data
- Search students by name or ID
- Update existing enrollment records
- Remove students from the system
Fields per enrollment:
- Full name, address, phone number
- Emergency contact name and phone
- Blood type and Rh factor
| Layer | Technology |
|---|---|
| Language | Java |
| UI | Swing (JFrame, buttons, text fields, combo boxes) |
| Database | MySQL |
| Data access | JDBC (Connection, PreparedStatement, ResultSet) |
| Schema | MySQL Workbench (.mwb included) |
InterfaceGrafica.java → Swing UI, event handling (Insert/Remove/Update/Search)
Matricula.java → Data model holding enrollment fields
ConexaoBancoDeDados.java → JDBC layer: connection management + SQL execution
Principal.java → Entry point, initializes the window
Flow: user fills form → Matricula object is populated → ConexaoBancoDeDados executes the SQL → result is displayed in the UI.
Requirements: Java 8+, MySQL
git clone https://github.com/cherohn/AppointmentSystem-Java-JDBC.git- Import
matricula.mwbinto MySQL Workbench to create the schema - Update DB credentials in
ConexaoBancoDeDados.java:
// default: localhost:3306/matricula, user: root- Compile and run
Principal.java
Matheus Garcez — github.com/cherohn