教材中的程序,调试不通过,有什么问题
import java.awt.Graphics;import java.awt.Applet;
public class MyJavaApplet extends Applet
{
public void paint(Ggaphics g)
{
g.drawString(" Hello,Java Applet World ",10,20)
}
3行
[此贴子已经被作者于2018-4-19 10:40编辑过]
[此贴子已经被作者于2018-4-19 10:40编辑过]
import java.applet.Applet; import java.awt.Graphics; public class MyJavaApplet extends Applet{ public void paint(Graphics g) { g.drawString(" Hello,Java Applet World ",10,20); } }