主题:关于运行appler小应用程序的问题
import java.applet.Applet;
import java.awt.Graphics;
public class HelloWorld extends Applet{
public void paint(Graphics g){
g.drawString("Here is the output of my program:Hello world!",50,25);
}}
这个程序运行后生成了一点class 文件 嵌入到网页中
<applet code="HelloWorld.class"
width=320 height=180>
</applet>
为什么在我的浏览器中不能运行呢 是不是我还要装个什么东西?
import java.awt.Graphics;
public class HelloWorld extends Applet{
public void paint(Graphics g){
g.drawString("Here is the output of my program:Hello world!",50,25);
}}
这个程序运行后生成了一点class 文件 嵌入到网页中
<applet code="HelloWorld.class"
width=320 height=180>
</applet>
为什么在我的浏览器中不能运行呢 是不是我还要装个什么东西?