アットウィキロゴ

じゃヴぁ0628

import java.awt.*;
import java.awt.event.*;

class game0628 extends Frame{

int take,b,w,h;
double setake,utake,maetake;

public static void main(String [] args) {
        Frame f=new game0628();
        f.setTitle("game0628");
        f.setSize(700,700);
        f.setBackground(Color.yellow);
        f.setVisible(true);
    }

game0628(){
take=161;
b=83;
w=59;
h=88;

setake=0.25*take-1;
utake=0.25*take+1;
maetake=utake+1.3+0.1*(b-80);
System.out.println(setake);
System.out.println(utake);
System.out.println(maetake);



addWindowListener(new stopwin());
}

class stopwin extends WindowAdapter{
    public void windowClosing(WindowEvent we){System.exit(0);}
}  

public void paint(Graphics g){  
g.fillRect(100,100,50,50);
}

}
最終更新:2011年02月26日 09:03