I\'m trying to make a game. There\'s several different screens in the game such as a main menu, and the actual game screen. Each of these is a separate jpanel extension. I have
You can do a number of different things to achieve the same effect.
The first suggestion I'd make is use CardLayout (How to Use CardLayout) as this is what it was designed to do.
The other would be to use a JTabbedPane (How to use Tabbed Panes)