可以帮我看看这HelloWordApplet哪错了吗?# Java - 爪哇娇娃
w*p
1 楼
copy 了一段code, 居然compile过不了, 可以帮我看看哪错了吗?
compile 说是 extends "JApplet" 错了, 看不出来啊--是因为太困了吗?
谢谢了!
import javax.swing.JOptionPane;
import java.awt.Graphics;
public class HelloWordApplet extends JApplet
{
public void paint (Graphics g)
{
g.drawString ("Welcome to Java Programming!", 25, 25);
}
}
compile result:
HelloWordApplet.java: connot resolve symbol
symbol: class JApplet
location: class HellowWordApplet
public class HellowWordApplet extends JApplet
1 error
Java菜鸟
compile 说是 extends "JApplet" 错了, 看不出来啊--是因为太困了吗?
谢谢了!
import javax.swing.JOptionPane;
import java.awt.Graphics;
public class HelloWordApplet extends JApplet
{
public void paint (Graphics g)
{
g.drawString ("Welcome to Java Programming!", 25, 25);
}
}
compile result:
HelloWordApplet.java: connot resolve symbol
symbol: class JApplet
location: class HellowWordApplet
public class HellowWordApplet extends JApplet
1 error
Java菜鸟