Draw the K-line in Java (ext. 2)

Source: Internet
Author: User
----Attached: Stockapplet.java
Import java.applet.*;
Import java.awt.*;
Import java.io.*;
Import java.net.*;
public class Stockapplet extends Java.applet.Applet implements Runnable
{//below is the declaration portion of a public variable
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); Declaring layout manager
This.setbackground (Color.White); Set Background color
This.setforeground (Color.Black); Set Text color
for (int i=1;i< 10;i++)//The following loops are used to add labels to the layout
{
Label[i]=new Label ();
This.add (Label[i]);
Label[i].reshape (i*80-65,10,50,15);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.