Swing JPanel won't repaint

前端 未结 6 2266
傲寒
傲寒 2021-02-20 07:39

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

6条回答
  •  情深已故
    2021-02-20 08:16

    Have you tried SetVisible() on the labels ?

    Have you tried to add the objets at initialisation without any update ? If they don't show up there, they will never show up.

提交回复
热议问题