Skip to content

About

Multi-role desktop educational management and assessment platform built in Java Swing with interactive quiz dialogs and flat-file database persistence.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

SmartLearn: Multi-Role E-Learning Platform

A full-stack desktop educational management and assessment system built in Java Swing for the 2nd Year Object-Oriented Programming (Java) Course Project.

🚀 Key Features

  • 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, and quiz_results.txt.
    • Self-healing data directories and fallback discovery.
  • Dark-Teal Modern UI Theme:
    • Custom gradient canvases, styled cards, responsive scroll viewports, and themed buttons.

📁 Project Structure

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 and Run

1. Build

build.bat

2. Run Application

run.bat

Default Demo Accounts:

  • Student: s1 / password
  • Instructor: i1 / password
  • Admin: admin / admin (Or click Register on the login screen to create a new profile)

3. Run Automated Test Suite

test.bat

Verifies user authentication, uniqueness constraints, catalog persistence, enrollment validation, and dynamic quiz scoring headlessly.

About

Multi-role desktop educational management and assessment platform built in Java Swing with interactive quiz dialogs and flat-file database persistence.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages