I asked this question before but I'm still confused. This is my code from a game that is like
Fruit Ninja. I did not finish it yet. I'm trying to create a start menu for this game using JButtons and Cardlayout. The buttons should display "Play" and "Exit". And once the user clicks on the play button, the window should switch to the Furutsu Panel and the buttons should disappear. The exit button should make the window simply disappear. I know how to use CardLayout but I don't know how to implement in my game. Any help would be appreciated.