|
Java學习者论坛
import de.kawt.*;
import java.awt.*;
import java.awt.event.*;
public class test extends KAWTlet implements ActionListener{
public test(){
label1=new Label("你好");
label2=new Label("南面");
frame=new Frame("KAWTyan示");
}
public void startApp(){
frame.add("Center",label1);
frame.add("South",label2);
frame.addWindowListener(new de.kawt.Closer(this));
frame.pack();
System.out.println("1");
System.out.println("2");
frame.show();
}
public void pauseApp(){}
public void destroyApp(boolean flag){
frame.dispose();
}
public void actionPerformed(ActionEvent e){
}
public static void main(String args[]){
new test().startApp();
}
private Frame frame=null;
private Label label1=null;
private Label label2=null;
}
欢迎來到Java学习者lun壇,转载请注明地址:http://www.javaxxz.com. |
|