import java.awt.*;
import java.awt.event.*;
class view extends Frame{
int[] tsecode=new int[1000];
int[] tyear=new int[1000];
int[] tmonth=new int[1000];
int[] tday=new int[1000];
int[] oprice=new int[1000];
int[] hprice=new int[1000];
int[] lprice=new int[1000];
int[] cprice=new int[1000];
int[] rprice=new int[1000];
int[] volume=new int[1000];
int[] stockprice=new int[400];
int s,checknumber;
int n;
public static void main(String [] args) {
view f=new view();
f.setTitle("株式情報");
f.setSize(700,700);
f.setBackground(Color.yellow);
f.setVisible(true);
}
view(){
check ch=new check();
ch.idcode=1720;
ch.idyear=2008;
ch.makedata("doro6");
tmonth=ch.tmonth;
tday=ch.tday;
tyear=ch.tyear;
tsecode=ch.tsecode;
oprice=ch.oprice;
hprice=ch.hprice;
lprice=ch.lprice;
cprice=ch.cprice;
rprice=ch.rprice;
volume=ch.volume;
checknumber=ch.checknumber;
for(s=1;s<checknumber+1;s++){
n=31*(tmonth[s]-1)+tday[s];
stockprice[n]=cprice[s];
}
addWindowListener(new stopwin());
}
class stopwin extends WindowAdapter{
public void windowClosing(WindowEvent we){System.exit(0);}
}
public void paint(Graphics g){
for(n=1;n<373;n++){
g.fillRect(100+n,600-stockprice[n],1,stockprice[n]);
}
}
}
最終更新:2011年04月06日 03:59