repeating the whole program after pressing Yes button in the confirmation message box

Reply

Join Date: Sep 2004
Posts: 18
Reputation: psylocke is an unknown quantity at this point 
Solved Threads: 0
psylocke psylocke is offline Offline
Newbie Poster

repeating the whole program after pressing Yes button in the confirmation message box

 
1
  #1
Sep 11th, 2004
hello everyone, id like to ask for some help. i am a beginner in Java programming. i am doing mastermind game using java. the whole logic of the game is already finished, and my ONLY problem now is HOW will i be able to repeat the whole game after the user press the YES Button from the message box asking him/her if he/she wants to play again...this makes it hard for me to finish the program. hope u guys can help me. thanks a lot
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 55
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: repeating the whole program after pressing Yes button in the confirmation message box

 
1
  #2
Sep 11th, 2004
I usually make another object of the gui class ... but I dont know how to get the running object closed .. cuz when I close the running object .. it throws an exception.....
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 18
Reputation: psylocke is an unknown quantity at this point 
Solved Threads: 0
psylocke psylocke is offline Offline
Newbie Poster

Re: repeating the whole program after pressing Yes button in the confirmation message box

 
0
  #3
Sep 11th, 2004
where do u specifically declare the object of that same gui class?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 18
Reputation: psylocke is an unknown quantity at this point 
Solved Threads: 0
psylocke psylocke is offline Offline
Newbie Poster

Re: repeating the whole program after pressing Yes button in the confirmation message box

 
0
  #4
Sep 11th, 2004
Originally Posted by nanosani
I usually make another object of the gui class ... but I dont know how to get the running object closed .. cuz when I close the running object .. it throws an exception.....
i would like to try creating an object of that GUI class, but where will i create it? i mean where can i replace that object?
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 55
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: repeating the whole program after pressing Yes button in the confirmation message box

 
0
  #5
Sep 11th, 2004
you should make the object in the button's action listener ... it will popup another frame of your program.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC