//JApp.java
import java.applet.*;
import java.awt.*;
public class JApp extends Applet
{
public void paint(Graphics g)
{
g.setColor(Color.blue);
g.drawString("hello word!",50,25);
}
}//test.html
<html>
<applet code="JApp.class" width=300 height=200 codebase=".">
< /applet >
</html>说明:可以在IE中运行。
import java.applet.*;
import java.awt.*;
public class JApp extends Applet
{
public void paint(Graphics g)
{
g.setColor(Color.blue);
g.drawString("hello word!",50,25);
}
}//test.html
<html>
<applet code="JApp.class" width=300 height=200 codebase=".">
< /applet >
</html>说明:可以在IE中运行。
//<applet code=JApp width = 100 height = 50></applet>
请见问题:我的Applet不能在appletviewer下运行,却可以在IE下运行,为什么啊?