Java小程序pain为什么好多程序都要用到,super.paint(g);是什么意思,刚学JAVA谢谢麻烦帮我解析下面例子
importjava.awt.Graphics;importjavax.swing.JApplet;publicclasszuoye4extendsJApplet{pub...
import java.awt.Graphics;
import javax.swing.JApplet;
public class zuoye4 extends JApplet{
public void paint(Graphics g){
super.paint(g);
g.drawString("专业:计算机",20,30);
g.drawString("籍贯:中国",20,40);
}
} 展开
import javax.swing.JApplet;
public class zuoye4 extends JApplet{
public void paint(Graphics g){
super.paint(g);
g.drawString("专业:计算机",20,30);
g.drawString("籍贯:中国",20,40);
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询