只知道:
paint(); //awt控件(比如Buttton, Frame)repaint();的时候调用
paintComponent(); //swing控件(Jbutton, Frame)reapaint()的时候调用。