Writing a quiz program
807599Dec 19 2006 — edited Dec 19 2006For my college IVA i am writing a quiz program and after setting up a menu and different categories i am now stuck trying to display the second question.
My design is to use JButtons to display the answer and then when they are clicked, the users score is updated (which ive done) and then a 2nd question is loaded and displayed.
I have managed to load a second question from the file by simply calling the methods used to read the question when the the button is clicked. When doing "System.out.println(question)", i can see the question but i cant find a way to "reload" the screen so the varibles will be updated and the jpanel will display the new question and the jbutton will display the new answers.
Any ideas?
Thanks!