I am pretty new at . Java Swing, and am using the CardLayout for my application. In this app a user can create activities and, in an other JPanel, view the existing ones.
I am having trouble updating the card (where the label is in). If I add the activity, when you restart the app it works fine. I am looking for a way that doesn't require restarting.
So in short, I would like to know how I should best reconstruct/update a panel whilst running so that the new label data is shown.
Thanks in advance!