Dormitory Management System
1. Project Overview
Develop a desktop-based Dormitory Management System that manages rooms, tenants, rent, occupancy. The system must store records persistently and support a complete real-world transaction from start to finish.
2. Learning Objectives
- Design and build desktop forms using NetBeans GUI Builder (JFrame/JPanel).
- Apply object-oriented programming through models, controllers, and encapsulation.
- Connect Java to MySQL/MariaDB using JDBC and prepared statements.
- Implement validated CRUD operations and a complete transaction workflow.
- Display searchable records and produce a useful summary report.
3. Required Modules
- Login and user roles: administrator and staff, with permissions enforced in the application.
- Dashboard: show at least three relevant metrics.
- Manage rooms: add, view, edit, delete or deactivate records where appropriate.
- Manage tenants: add, view, edit, delete or deactivate records where appropriate.
- Manage leases: add, view, edit, delete or deactivate records where appropriate.
- Manage invoices: add, view, edit, delete or deactivate records where appropriate.
- Search and filter records using a JTable; display transaction history and a dashboard summary.
4. Required Transaction Workflow
Mandatory scenario: Assign a tenant to a room with
available capacity, generate monthly rent, and record payments.
The workflow must persist related records, validate business rules, handle failure without partial updates, and display the final result to the user.
5. Interface and Technical Requirements
- At least five functional screens or panels, including login, dashboard, record management, transaction form, and report view.
- Java Swing (JFrame/JPanel) with NetBeans GUI Builder; Apache Maven for dependencies.
- MySQL or MariaDB connected through JDBC; use PreparedStatement rather than concatenated SQL.
- Input validation, helpful error messages, and confirmation before destructive actions.
- JTable-based listing with search/filter; use suitable JComboBox, JTextField, and date inputs.
- Use a separate database connection class, model classes, and controller/service classes.
- Store passwords using a secure password hash; do not hardcode passwords in source code.
- Use database transactions for operations involving multiple related updates.
- Provide at least one printable or exportable summary report (CSV is acceptable).
6. Deliverables
- Complete NetBeans Maven project source code, including pom.xml.
- Database .sql export with schema and sample records.
- README with setup steps, test accounts, and screenshots.
- Short demonstration showing CRUD, validation, the mandatory workflow, and reporting.
7. Grading Rubric
| Criterion | Points |
|---|---|
| System functionality and transaction workflow | 30 |
| Database design and JDBC integration | 20 |
| Object-oriented design | 15 |
| GUI design and usability | 15 |
| Validation and error handling | 10 |
| Code organization and documentation | 10 |
| Total | 100 |
8. Acceptance Checklist
- Login and role restrictions work.
- At least four management modules perform CRUD operations.
- The mandatory transaction workflow succeeds and prevents invalid transactions.
- Records remain after closing and reopening the application.
- Search/filter and a report work with actual database records.
- The project launches successfully from NetBeans after following the README.