repaint()方法为什么不能调用?
调用display()时打印出GamePanel's display! 但不显示GamePanel's PrintComponent,也就是System.out.println("GamePanel's PrintComponent")这条语句没有执行,repaint()方法为什么不能调用方法 printComponent(Graphics g)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
调用display()时打印出GamePanel's display! 但不显示GamePanel's PrintComponent,也就是System.out.println("GamePanel's PrintComponent")这条语句没有执行,repaint()方法为什么不能调用方法 printComponent(Graphics g)