How to effectively use cardlayout in java in order to switch from panel using buttons inside various panel constructors
The short answer is don’t. The reasons for this is you’ll end having to expose the parent container and CardLayout to ALL your sub components, which not only exposes portions of your application to potential mistreatment, it tightly couples the navigation making it difficult to add/remove steps in the future… A better solution would be … Read more