如下例:
import java.awt.*;public class TestPaint {
    new PaintFrame().launchFrame();
}class PaintFrame() extends Frame{
    public void launchFrame(){
        setBounds(200,200,600,600);
        setVisible(true);
    }
    public void paint(Graphics g){
        ...
        ...
    }
}程序中paint()方法是会被自动调用的,请问这个内部是怎样实现的?什么原理呢?