Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个JCheckBox图像顶部,但每当repaint()被称为JCheckBox消失。如果我单击它最初所在的位置,它会再次可见。我试过setVisible(true)在每次重绘时都设置它,但没有奏效。
JCheckBox
repaint()
setVisible(true)
有谁知道我该如何解决这个问题?