G
gudujian
Unregistered / Unconfirmed
GUEST, unregistred user!
我用jcreat写了一个简单的类,
import java.awt.*;
//import java.awt.FlowLayout;
public class test2 extends java.applet.Applet
{
public static void main (String [] args){
test2 aa=new test2();
aa.init();
aa.
}
public void init()
{
setLayout(new FlowLayout());
add(new Button("一"));
add(new Button("二"));
}
}
请问怎样才能显示,按钮呀,
import java.awt.*;
//import java.awt.FlowLayout;
public class test2 extends java.applet.Applet
{
public static void main (String [] args){
test2 aa=new test2();
aa.init();
aa.
}
public void init()
{
setLayout(new FlowLayout());
add(new Button("一"));
add(new Button("二"));
}
}
请问怎样才能显示,按钮呀,