0

Hi, I have one class where JFrame is created and 4 classes (JPanels - Menu, Game, Score, etc.).
In the class, where I am creating Frame I also create new Menu (JPanel) .. in menu, I have 4 buttons. If I click e.g. on a button Start ... the new Game is created, so I add JPanel Game to the frame and I set visibility of JPanel Menu to false.
But I dont know how to go back from Game to menu without creating multiple JPanels. Any idea how to solve this ?

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by NormR1
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.