Frame问题
import java.awt.*;
class VonKoch extends Frame {
int size;
Point currPt,pt=new Point();
int angle=0;
int level;
VonKoch(int x,int y,int size,int level){
super("VonKoch");
currPt=new Point(x,y);
this.size=size;
this.level=level;
setSize(200,200);
setBackground( Color.red );
setForeground(Color.white);
setVisible(true);
}
public static void main(String[] args){
VonKoch p=new VonKoch(100,200,2,4);
}
}
能编译但不能远行 哪位高手能帮帮我吗?