We are developing an applet where we need to navigate from one screen to many other screens.
We have two options to achieve this:
1. Use a Card Layout and Flip the panels according to the navigation.
2. Assign Component Index to the Panels while adding to a Main Panel and then hide or show (setVisible) the panels according to the navigation.
Which would be an appropriate approch ?