I mean, how do you create a user interface in which the screen changes with some action, but the program works completely in one window? In other words, I assume that this will be the same concept as website navigation, in which everything happens in one window (web browser), but the contents of the screen change with each action (button click, link click, etc. d.).
I looked at the Java API and found the CardLayout class; Am I heading in the right direction or is there an easier way? (The page indicated by CardLayout is somewhat complicated and recommended for those who want to manually encode everything).
I know that there are validate() and repaint() JFrame in JFrame , but this may not be practical for them. I'm not quite a beginner, but not very experienced, so bear with me.
Any guidance would be helpful. Many thanks.
source share