-
currentQuestion
int currentQuestion
Current question index.
-
group
ButtonGroup group
Grouping radio buttons to allow only one selection at a time.
-
nextButton
JButton nextButton
Button for moving to the next question.
-
options
JRadioButton[] options
Array of radio buttons for the multiple-choice options.
-
optionsPanel
JPanel optionsPanel
Panel to hold and display the options.
-
questionLabel
JTextArea questionLabel
Text area for displaying the current question.
-
questions
String[][] questions
2D array containing questions, options, and correct answers.
-
score
int score
Player's score.
-
timeLeft
int timeLeft
Time left in seconds for the current question.
-
timer
Timer timer
Timer for countdown functionality.
-
timerLabel
JLabel timerLabel
Label for displaying the countdown timer.