import java.awt.*;
import java.awt.event.*;
class pro extends Frame {
public static void main(String [] args) {
Frame f=new pro();
f.setTitle("pro");
f.setSize(600,600);
f.setBackground(Color.yellow);
f.setVisible(true);
}
pro(){
addWindowListener(new stopwin());
}
class stopwin extends WindowAdapter{
public void windowClosing(WindowEvent we){System.exit(0);}
}
public void paint(Graphics g){
int face,facex,facey;
int body,bodyx,bodyy;
int heapy,heapx,heap;
int mig,migx,migy;
int hid,hidx,hidy;
face=25;
facex=25;
facey=25;
g.fillOval(250-facex,100,2*facex,2*facey);
body=25;
bodyx=50;
bodyy=50;
g.fillOval(250-bodyx,100+2*facey,2*bodyx,2*bodyy);
heap=25;
heapx=50;
heapy=50;
g.fillOval(250-heapx,100+2*facey+2*bodyy,2*heapx,2*heapy);
mig=100
migx=10;
migy=10;
}
}
最終更新:2010年10月28日 02:59