Can anyone tell me how to go about coding for navigation between multiple JPanel classes taking the event trigger from JButton from the objects (panels) themselves? I have read about CardLayout. The panel can be swapped from the events happening in the parent panel. What I want to achieve is on click of a button embedded in the panel, it should should disappear or a desired panel should be displayed. Can’t seem to find a solution.
Can anyone tell me how to go about coding for navigation between multiple JPanel
Share
There is nothing about CardLayout that prevents switching cards from actions of children within the cards.