J
JAVAFAN
Unregistered / Unconfirmed
GUEST, unregistred user!
在一个工程中:
1:添加HelloAgain.HTML文件,其中关键的一句是:
APPLET CODE ="HelloAgainApplet.class" WIDTH=250 HEIGHT=100
2:添加HelloAgainApplet.java文件
import java.awt.Graphics;
import java.awt.Font;
import java.awt.Color;
public class HelloAgainApplet extends java.applet.Applet{
Font f=new Font("TimesRoman",Font.BOLD,36);
public void paint(Graphics g) {
g.setFont(f);
g.setColor(Color.red);
g.drawString("Hello again!",5,50);
}
}
3:RUN HelloAgainApplet.java文件,再RUN HelloAgain.HTML 文件;
请问在JBUILDER3。0环境中如何观看一下生成的HelloAgain.HTML页面?
1:添加HelloAgain.HTML文件,其中关键的一句是:
APPLET CODE ="HelloAgainApplet.class" WIDTH=250 HEIGHT=100
2:添加HelloAgainApplet.java文件
import java.awt.Graphics;
import java.awt.Font;
import java.awt.Color;
public class HelloAgainApplet extends java.applet.Applet{
Font f=new Font("TimesRoman",Font.BOLD,36);
public void paint(Graphics g) {
g.setFont(f);
g.setColor(Color.red);
g.drawString("Hello again!",5,50);
}
}
3:RUN HelloAgainApplet.java文件,再RUN HelloAgain.HTML 文件;
请问在JBUILDER3。0环境中如何观看一下生成的HelloAgain.HTML页面?