DONE run as是出现java application和java apple,为什么?
run as时出现java application和java apple,为什么?而且执行了java application后,还关不了弹出的结果 package javaApplet;
import java.applet.*;
import java.awt.*;
public class FlowLayoutExample extends Applet{
public void init(){
setLayout(new FlowLayout(FlowLayout.LEFT,20,20));
// super("ZZXWILL");
String str="";
for(int i=1;i<=4;i++){
add(new Button("zzx"+i+str));
str+=" ";
}
}
public static void main(String[] args){
Frame x=new Frame("ZZXWIL");
FlowLayoutExample y=new FlowLayoutExample();
x.add(y);
y.init();
x.setSize(200,100);
x.setVisible(true);
}
}
[此贴子已经被作者于2007-10-7 16:10:33编辑过]