So I have a java program of a game. I want to have a different program and when you click on a button there that java program closes and starts the program with the game. But I have no idea how I can do that, so can anyone help me?
-
did you google before ask?shreyansh jogi– shreyansh jogi2013-11-27 08:39:30 +00:00Commented Nov 27, 2013 at 8:39
-
1Are you sure you want to start a new program or do you maybe just want to open another frame showing your program?Matthias– Matthias2013-11-27 08:40:24 +00:00Commented Nov 27, 2013 at 8:40
-
Well I don't know whats easier, but I don't have a lot of Java knowledge.user2971821– user29718212013-11-27 08:41:28 +00:00Commented Nov 27, 2013 at 8:41
-
It is way easier staying in your own program and just show another JFrame (assuming you coded that in swing) from your main method which then will open your game JFrame once the user click's that button.Matthias– Matthias2013-11-27 08:45:53 +00:00Commented Nov 27, 2013 at 8:45
Add a comment
|