Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Writing a quiz program

807599Dec 19 2006 — edited Dec 19 2006
For 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2007
Added on Dec 19 2006
2 comments
102 views