I am just curious if anyone knows how to BEGIN to start the coding for telling the program to have a GUI with typical fields, labels, buttons, panels, etc in a GUI, and then when a user presses a button, it goes to a complete different GUI with brand new panels with fields, labels, buttons etc. Just like clicking on a link and the website refreshing to load a brand new website.
How would I go about doing that? Would it have to be a new program that extends the original GUI? I just wanna be able to press a button, and have the window change COMPLETELY to something else. And then when I finished there, go back to the original GUI by clicking a 'back' button or something.
I'm not talking about a website, i'm talking about a java program. No applets either.
The reason I ask is I'm looking at my code, and seeing there's no way I can have the program close this GUI, then open up a new GUI, preferably the same program file, or maybe a new java file, i don't know how it would work, then have the new GUI close and open up the original GUI with nothing cleared or reset, all the information still there.
Anyone have an idea on where I could start?