更新时间:2023-12-05 19:08:52
验证您在添加组件并调用 pack()
,如相关示例中所述.您可能还需要采用适当的布局.按照此处的建议调用repaint()
,可能会解决症状,但不能解决根本原因.
Verify that you invoke setVisible()
after adding components and calling pack()
, as discussed in this related example. You may also need to adopt an appropriate layout. Invoking repaint()
, as suggested here, may fix the symptom but not the underlying cause.