A simple Java Swing application designed to create an online test with multiple-choice questions. This application allows users to navigate through questions, bookmark them for later, and view their results.
- Multiple-choice questions: Present questions with multiple options.
- Navigation: Move to the next question or go back to bookmarked questions.
- Bookmarking: Mark questions to revisit them later.
- Results: Display the total number of correct answers at the end of the test.
To run this application, follow these steps:
- Java Development Kit (JDK) 8 or later installed on your system.
-
Clone the repository:
git clone https://github.com/your-username/java-swing-online-test.git
-
Navigate to the project directory:
cd java-swing-online-test -
Compile the Java file:
javac OnlineTest.java
-
Run the application:
java OnlineTest
The OnlineTest.java file includes:
JLabelandJRadioButton: Components used to display the question and answer choices.- Buttons (
JButton):Next: Advances to the next question.Bookmark: Marks the current question for later review.
- Action Handling (
actionPerformed): Handles button clicks for navigating, bookmarking, and displaying results. - Question Display (
setmethod): Updates the question and answer options based on the current question index. - Answer Checking (
checkmethod): Validates the selected answer and updates the score.
Contributions are welcome! If you find any issues or have suggestions for improvements, please fork the repository and submit a pull request.
This project is not licensed.
For any questions or feedback, please reach out to Official E-mail.
