User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 392,040 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,307 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 2251 | Replies: 4
Reply
Join Date: Sep 2004
Posts: 18
Reputation: psylocke is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
psylocke psylocke is offline Offline
Newbie Poster

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

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2004
Location: Pakistan
Posts: 1,673
Reputation: nanosani is an unknown quantity at this point 
Rep Power: 8
Solved Threads: 50
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

  #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  
Join Date: Sep 2004
Posts: 18
Reputation: psylocke is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
psylocke psylocke is offline Offline
Newbie Poster

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

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

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

  #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  
Join Date: Jul 2004
Location: Pakistan
Posts: 1,673
Reputation: nanosani is an unknown quantity at this point 
Rep Power: 8
Solved Threads: 50
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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Java Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 11:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC