import java.awt.*;
import java.awt.event.*;
class game0826 extends Frame{
public static void main(String[] args) {
game0826 test=new game0826();
}
game0826(){
Panel pane1=
new Panel();
Panel pane2=new Panel();
Button b1 = new Button("OK");
Button b2 = new Button("pp");
add(pane1);
add(pane2);
setLayout(new GridLayout(2, 2));
pane1.add(b1);
pane2.add(b2);
setSize(700,700);
setBackground(Color.blue) ;
setVisible(true);
addWindowListener(new WindowAdapter(){public void
windowClosing(WindowEvent e){System.exit(0);}});
}
}
最終更新:2011年03月01日 22:07