so I have this jFrame with a Panel.
Inside that panel there are two more panels and the layout is set to cards.
Inside one of those two panels there is a button.
How can I change the panel thats being displayed when that button is pressed?
so I have this jFrame with a Panel. Inside that panel there are two
Share
Try this code snippet, hope the comments might help you understand the sequence.