Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to clear an event?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
member104845




PostPosted: 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
Sponsor
sponsor
Reality Check




PostPosted: 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...
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: