I have a question.
I just started with Java and may have some small basic things. Now I wonder how a kind of pages (sections) in a program makes. I do not mean some kind of tabbed panel, or if you click on a button that a text is visible.
I mean that for example all over the screen a separate part of the program looks. As the main menu of a game. There is nothing else than the main menu visible at that time. If you for example a button from that menu click. The game is loading. (I'm using the building of a standard game as an example) If you for example the main menu click on another button (eg "Settings") Then wort settings "page" is visible, and there is nothing else that the program is really doing. I do not know how this type of navigation is called. But almost every program does have something. How can I do this too? What should I do for example, as a new file, import the classes of a particular page, or something?