Hi
I want to create a quiz game where I have to ask questions and gives 4 options. The submit button to check the answer and Next button to move to next question and of course next frame.
My question is how should I design this game? Should I have one frame for each question and moves to other questions frames by frames? This seems very strange because if I have 100 questions then I will have 100 frames?
Please suggest some idea?
I don't think the CardLayout is appropriate in this case. CardLayouts are for different layouts in the same component. This is the same layout, but different data.
Stephan van Hulst wrote:I don't think the CardLayout is appropriate in this case. CardLayouts are for different layouts in the same component. This is the same layout, but different data.
That depends on the questions on the the cards. Some might be multiple choice with only one correct answer using radio buttons, others maybe multiple choice with more than one answer that is correct using check boxes.