I\'m building a program that requires swapping out the current, visible JPanel with another. Unfortunately there seems to be multiple to go about this and all of my attempts
that requires swapping out the current, visible JPanel with another
Have a look at CardLayout for a complete example of how to do it properly.