第15章 图形

paintComponent会在初始化之前被swing调用,所以,一般如果初始化一个JComponent组件的话paintComponent会在初始化之前就调用一次

原文地址:https://www.cnblogs.com/wanjiang/p/5610133.html