A full-stack desktop educational management and assessment system built in Java Swing for the 2nd Year Object-Oriented Programming (Java) Course Project.
- Role-Based Architecture:
- Student View: Browse curriculum, enroll in courses, take interactive quizzes, view past attempts and scoring analytics.
- Instructor View: Create and publish new courses directly to the global catalog, monitor course listings.
- Interactive Assessment Engine (
QuizDialog):- Multi-question assessment with pagination, radio button option groups, and submission validation.
- Instant score calculation with percentage feedback, pass/fail badges, and completion animations.
- Dynamic User Authentication & Registration:
- User login with credential validation against local file stores.
- Integrated registration modal enabling new student and instructor account creation with ID collision prevention.
- Robust Persistence Layer (
FileManager):- Flat-file database for
users.txt,courses.txt,enrollments.txt, andquiz_results.txt. - Self-healing data directories and fallback discovery.
- Flat-file database for
- Dark-Teal Modern UI Theme:
- Custom gradient canvases, styled cards, responsive scroll viewports, and themed buttons.
smartlearn/
├── data/ # Persistent storage
│ ├── users.txt # User directory (students & instructors)
│ ├── courses.txt # Published course catalog (20+ subjects)
│ ├── enrollments.txt # Student-course enrollments
│ └── quiz_results.txt # Timestamped assessment submissions
├── out/ # Compiled JVM bytecode (.class)
├── resources/ # Assets
│ └── images/ # Icons, logos, and success GIF
├── src/ # Java source code
│ ├── Main/
│ │ ├── Main.java # Application entry point
│ │ ├── Courses/ # Course, Lesson, Quiz, Question models
│ │ ├── Users/ # User, Student, Instructor models
│ │ └── Utils/ # FileManager persistence controller
│ ├── GUI/ # Swing interface
│ │ ├── LoginFrame.java
│ │ ├── StudentDashboard.java
│ │ ├── InstructorDashboard.java
│ │ ├── QuizDialog.java
│ │ └── RegistrationDialog.java
│ └── TestSmartLearn.java # Headless automated verification test
├── build.bat # Compiler script
├── run.bat # Application launcher
├── test.bat # Automated test runner
├── javareport.pdf # Course project formal report
└── README.md
build.batrun.batDefault Demo Accounts:
- Student:
s1/password - Instructor:
i1/password - Admin:
admin/admin(Or click Register on the login screen to create a new profile)
test.batVerifies user authentication, uniqueness constraints, catalog persistence, enrollment validation, and dynamic quiz scoring headlessly.