I'm making a game and whenever I press the play button the game should start in a new window. How to change the frame of the same window in Java GUI? How can I make the whole thing in one window?
Asked
Active
Viewed 198 times
-6
-
Explain better what you want to do. Post an [MCVE](http://stackoverflow.com/help/mcve). – user1803551 May 06 '14 at 19:15
1 Answers
0
"so how can make the whole thing in one window"
See How to Use CardLayout. It will let you swap between views/panels, so you can stick to just one frame. Also see a simple example here

Community
- 1
- 1

Paul Samsotha
- 205,037
- 37
- 486
- 720