944,141 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3458
  • Java RSS
Sep 11th, 2004
1

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

Expand Post »
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
Similar Threads
Reputation Points: 11
Solved Threads: 0
Newbie Poster
psylocke is offline Offline
18 posts
since Sep 2004
Sep 11th, 2004
1

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

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.....
Team Colleague
Reputation Points: 45
Solved Threads: 56
Unauthenticated Liar
nanosani is offline Offline
1,767 posts
since Jul 2004
Sep 11th, 2004
0

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

where do u specifically declare the object of that same gui class?
Reputation Points: 11
Solved Threads: 0
Newbie Poster
psylocke is offline Offline
18 posts
since Sep 2004
Sep 11th, 2004
0

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

Quote 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?
Reputation Points: 11
Solved Threads: 0
Newbie Poster
psylocke is offline Offline
18 posts
since Sep 2004
Sep 11th, 2004
0

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

you should make the object in the button's action listener ... it will popup another frame of your program.
Team Colleague
Reputation Points: 45
Solved Threads: 56
Unauthenticated Liar
nanosani is offline Offline
1,767 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Java and XML
Next Thread in Java Forum Timeline: Applet Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC