I have a simple object which extends JPanel
, when the update()
method is called on this object it it meant to add some labels to the panel and then rep
It turns out that the HoleCardsPanel
wansn't adding to its parent frame properly, once that was fixed the adding of new JLabels
works fine. I added call to the update()
method to the event dispatch thread
using SwingUtillities.invokeLater
I additionaly had to call validate()
from the uppermost component (in this case the JFrame
)