Basically what i want to do is have a JPanel that contains a set of JLabels. Each of these JLabels represents something in a LinkedList in another object within the program. Does anyone know how to update the JPanel to reflect the new state of the LinkedList whenever it is changed (note: it doesnt need to have any sort of listener attached to the list, just some way of refreshing what the JPanel displays).
Question
iamnotwhoisayiam
Hi there...
Basically what i want to do is have a JPanel that contains a set of JLabels. Each of these JLabels represents something in a LinkedList in another object within the program. Does anyone know how to update the JPanel to reflect the new state of the LinkedList whenever it is changed (note: it doesnt need to have any sort of listener attached to the list, just some way of refreshing what the JPanel displays).
Thanks for any help
James
Link to comment
Share on other sites
2 answers to this question
Recommended Posts