---- 附:StockApplet.java
import java.applet.*;
import java.awt.*;
import java.io.*;
import java.net.*;
public class StockApplet extends java.applet.Applet implements Runnable
{ //以下是公用变量的声明部分
int Move_Length=0,Move_Sum=0;
String FileName,Name_Str,Content_Date;
int SP[]=new int[2000];
int KP[]=new int[2000];
int JD[]=new int[2000];
int JG[]=new int[2000];
int Mid_Worth[]=new int[2000];
String myDate[]=new String[2000];
double CJL[]=new double[2000];
double MaxCJL,MidCJL;
Label label[]=new Label[10];
int MaxWorth,MinWorth;
int x_move0,x_move1,MaxLength=0;
int x0,y0,X,Y,Record_Num;
boolean Mouse_Move,Name_Change=true;
int JX_Five1,JX_Five2,JX_Ten1,JX_Ten2;
public void init()
{
TextField text1=new TextField();
Thread M_pointThread=null;
setLayout(null); //声明布局管理器
this.setBackground(Color.white); //设置背景色
this.setForeground(Color.black); //设定文字颜色
for(int i=1;i< 10;i++) //以下循环用于向布局中添加标签
{
label[i]=new Label();
this.add(label[i]);
label[i].reshape(i*80-65,10,50,15);
if(i==2){label[i].reshape(80,10,70,15);}
if(i==7){label[i].reshape(510,10,80,15);}
if(i >7){label[i].reshape((i-8)*490+45,380,70,15);}
}
FileName="000001"; //程序启动时的默认股票代码
Name_Str="上证指数";
this.add(text1); //向布局中添加文本框
text1.reshape(150,385,70,20);
text1.getText(); //取得文本框中输入的内容
}
public void start()
{ //创建并启动多线程
if (M_pointThread==null)
{
import java.applet.*;
import java.awt.*;
import java.io.*;
import java.net.*;
public class StockApplet extends java.applet.Applet implements Runnable
{ //以下是公用变量的声明部分
int Move_Length=0,Move_Sum=0;
String FileName,Name_Str,Content_Date;
int SP[]=new int[2000];
int KP[]=new int[2000];
int JD[]=new int[2000];
int JG[]=new int[2000];
int Mid_Worth[]=new int[2000];
String myDate[]=new String[2000];
double CJL[]=new double[2000];
double MaxCJL,MidCJL;
Label label[]=new Label[10];
int MaxWorth,MinWorth;
int x_move0,x_move1,MaxLength=0;
int x0,y0,X,Y,Record_Num;
boolean Mouse_Move,Name_Change=true;
int JX_Five1,JX_Five2,JX_Ten1,JX_Ten2;
public void init()
{
TextField text1=new TextField();
Thread M_pointThread=null;
setLayout(null); //声明布局管理器
this.setBackground(Color.white); //设置背景色
this.setForeground(Color.black); //设定文字颜色
for(int i=1;i< 10;i++) //以下循环用于向布局中添加标签
{
label[i]=new Label();
this.add(label[i]);
label[i].reshape(i*80-65,10,50,15);
if(i==2){label[i].reshape(80,10,70,15);}
if(i==7){label[i].reshape(510,10,80,15);}
if(i >7){label[i].reshape((i-8)*490+45,380,70,15);}
}
FileName="000001"; //程序启动时的默认股票代码
Name_Str="上证指数";
this.add(text1); //向布局中添加文本框
text1.reshape(150,385,70,20);
text1.getText(); //取得文本框中输入的内容
}
public void start()
{ //创建并启动多线程
if (M_pointThread==null)
{
| 对此文章发表了评论 |
