Thoughts Media.com

 


Windows Phone Thoughts

Loading feed...

Digital Home Thoughts

Loading feed...

Apple Thoughts

Loading feed...




Go Back   Thoughts Media Forums > Thoughts Media Off Topic

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-14-2004, 01:34 PM
mirkazemisaman
Intellectual
Join Date: Jul 2003
Posts: 211
Default Begnner Java Question!

Hi everyone,
I am posting this here after not getting a responce in a "programming forum". I, however always get help here.

Anyways, it is very simple.

I have a program (Break Out) running in JFrame with a Thread (Runnable) etc and I want to make a method that when called resets the whole program, meaning that it disposes the current window and then calls the main method to start a fresh window of the application. How do I go about doing this?

I need this for this game I have written, and I have tried resetting all my variables when the user clacks "replay" at the end to start a new game, but somehow things just don't function properly and I need to just start a fresh new window... is this even possible (calling the main() of a class from within the class and disposing the current window and replacing it by a new one??)

Any help will be greatly appreciated.
 
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:07 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright Thoughts Media Inc. 2009