I have started a project to create a game.
I have 5 jframes so far.
- 4 game screens
Is this the correct way to go about this.
Or should i have 1 jframe and 4 panels , my worry is it looking messy and ultimately confusing .
My other question is.
How can i load a new class and hide the previous panel.
Such as this scenario.
- Enter Details
- Submit Details
- Variables Induced
- Load new jframe ( or jpanel??)
- Hide previous jframe.
Look at using one JFrame and a CardLayout to help you swap JPanels. The tutorials can show you how to do this.