VJ6.0的使用方法(5)Applet编写调试过程(二)

2014-11-23 20:08:47 · 作者: · 浏览: 64
1.java的内容:
import java.awt.*;
import java.applet.*;

/**
* This class reads PARAM tags from its HTML host page and sets
* the color and label properties of the applet. Program execution
* begins with the init() method.
*/
public class Applet1 extends Applet implements Runnable
{
/**
* The entry point for the applet.
*/
Font ft; //文字字体对象实例
String theString, font, style; //移动的字符串、字体类型及样式
int size, speed; //文字的大小,移动速度
int xSet, Max, Min;//文字每次移动的位移量,右边界和左边界


public void init()
{
initForm();

usePageParams();

//