About This Software
๐ About
Quiz Game is a lightweight desktop quiz application that lets users both play quizzes and create their own questions. It stores all questions, categories, and answers in a MySQL database, so content is persistent and reusable across sessions.
โ Problem It Solves
Traditional quiz tools are either too complex, require an internet connection, or don't let users build their own question banks easily. Quiz Game solves this by providing:
A simple, offline desktop application โ no browser or internet needed.
An easy question-creation workflow โ anyone can add questions without touching SQL.
Automatic score tracking with instant right/wrong feedback, removing the need for manual marking.
Randomised question and answer order so the same quiz feels fresh every time.
๐ฅ Who Is It For?
Audience Use Case
Students Self-study and revision across any subject
Teachers / Trainers Build question banks for classroom quizzes or assessments
Quiz Enthusiasts Create and play trivia games with friends
Java Learners Study a practical example of Java Swing + JDBC + MySQL integration
๐ ๏ธ Technologies Used
Layer Technology
Language Java 17+
GUI Java Swing
Database MySQL 8.0
DB Connectivity JDBC (MySQL Connector/J 9.5.0)
Config Custom .env file loader
Title Screen
Select a category from the dropdown menu
Enter the number of questions you want to answer
Start the quiz or create your own questions
Quiz Screen
Answer multiple-choice questions
Get instant feedback (green for correct, red for incorrect)
Track your score in real-time
Navigate through questions with the "Next" button
Create Question Screen
Add your own questions to the database
Specify the category
Add 4 answer options and mark the correct one
โจ Features
๐ฏ Play Quiz: Answer questions from various categories
โ Create Questions: Add your own questions to the database
๐ Score Tracking: Real-time score updates during the quiz
๐ Randomized Questions: Questions and answers are shuffled for variety
๐พ MySQL Database: Persistent storage for all quiz data
๐จ Clean UI: User-friendly Java Swing interface