做super.paintComponent(g)什么(特别是当我们将它放在paintComponent()方法中时)?我很惊讶我之前没有看到有人问这个问题.
super.paintComponent(g)
我在Java Graphics上挖掘了我的学校笔记,它在这行代码中唯一提到的是"do not delete".
"do not delete"
但是这几周我一直在练习和使用Java paintComponent()方法.到目前为止,我没有将该行包含在我的代码中,并且一切似乎都运行良好(到目前为止).所以..
问题:
java graphics swing
graphics ×1
java ×1
swing ×1