How to clear an event?
Author |
Message |
member104845
|
Posted: Sun Jun 15, 2008 7:51 pm Post subject: How to clear an event? |
|
|
OK, so I have a program that is basically a quiz, with weird questions and inside joke answers:
So I use main to start the program, then send main over to NoHope, which creates objects and passes you over to initComponents which paints the screen and puts buttons and text and all the fancy stuff. It also adds an actionevent to the buttons. This then gets passed to actionPerformed, which evaluates the action (button pressed) and tells the user whether they are correct or incorrect. If they are incorrect lives get deducted (You can't lose yet, that's coming soon!). If your right, you get passed on to next question which adds one to the question and answer array nums, and passes you back to initComponents. However, when I click a correct answer, I get the Correct! popup, then a string of popups saying wrong answer, as I am handed off to the next question. Any reason why this is? I believe I may need to clear the event or something of the like?
My code can be found here: http://marco.pastebin.com/m2fc88aaf |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Reality Check
|
Posted: Sun Jun 15, 2008 10:49 pm Post subject: Re: How to clear an event? |
|
|
There is no way any of us can help you without your code... |
|
|
|
|
|
|
|