class NotHelloWorldPanel 中的super.paintComponent(g)起什么作用?不太明白 请高手解答。谢谢
public class NotHelloWorld
{
public static void main(String args[])
{
NotHelloWorldFrame fram=new NotHelloWorldFrame();
fram.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fram.setVisible(true);
}
}class NotHelloWorldFrame extends JFrame
{
public NotHelloWorldFrame()
{
setSize(300,200);
setTitle("NoHelloWorld!");
NotHelloWorldPanel pane=new NotHelloWorldPanel();
Container contentPane=getContentPane();
contentPane.add(pane);
}
}class NotHelloWorldPanel extends JPanel 
{

public void paintComponent(Graphics g)
{


//super.paintComponent(g);
g.drawString("Not a Hello World",75,100);

}
}