主题:请大虾给看哈。。。初学者
import java.awt.Graphics;
import java.applet.Applet;
public class HelloEducation extends Applet{
public String s;
public void init(){
s=new String("Welcome to Tongfang Education");
}
public void paint (Graphics g)
{
g.drawString(s,25,25);
}
编译时 报错 (Graphics)缺少标识符!!
啥子意思哦,开始把g写掉了,后来加上,但一直都这样
import java.applet.Applet;
public class HelloEducation extends Applet{
public String s;
public void init(){
s=new String("Welcome to Tongfang Education");
}
public void paint (Graphics g)
{
g.drawString(s,25,25);
}
编译时 报错 (Graphics)缺少标识符!!
啥子意思哦,开始把g写掉了,后来加上,但一直都这样