I'm creating a game with JFrame, and at the end of each game the user has to choose between continuing to play or exit the program. How can I refresh all the content of the JFrame without having to leave and enter to create a new game? Thanks in advance