•
•
•
•
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
![]() |
•
•
Join Date: Sep 2004
Posts: 18
Reputation:
Rep Power: 4
Solved Threads: 0
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
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.....
•
•
Join Date: Sep 2004
Posts: 18
Reputation:
Rep Power: 4
Solved Threads: 0
Re: repeating the whole program after pressing Yes button in the confirmation message box
#3
Sep 11th, 2004
•
•
Join Date: Sep 2004
Posts: 18
Reputation:
Rep Power: 4
Solved Threads: 0
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?
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
- Error message when attempting to run program in Windows XP (Windows NT / 2000 / XP / 2003)
- Can a power problem affect my hard drive? (Cases, Fans and Power Supplies)
- Help on random freezing and strange program behavior! (Viruses, Spyware and other Nasties)
- Problem with BIOS (Motherboards, CPUs and RAM)
- 2 questions: making a program wait, simulating the enter button (C#)
- XP wont release CD's (Windows NT / 2000 / XP / 2003)
- Please Help With Code (ASP)
- Accessing a mouse button (C++)
- cannot find server - Microsoft Internet Explorer afterdownloading Win Service pack 2 (Networking Hardware Configuration)
Other Threads in the Java Forum
- Previous Thread: Java and XML
- Next Thread: Applet Help



Linear Mode