import java.awt.*;
import java.lang.System;
public class Memo extends Frame 
   { public String motd;
     Memo(String s){
     
       super("Memo Frame");
       motd=s;
       resize(300,300);
}
     Memo(){      
       this("This is a Memo");
     }     public void paint(Graphics g){
        g.drawString(motd,15,15);
        g.drawString("Click anywhere to Exit",15,25);
     }
     public void start(){
        show();
     }     public boolean mouseDown(Event e,int x,int y){
         hide();
         dispose();
         System.exit(0);
         return false;
     }     public static void main(String args[]){
         Memo m;
         if(args.length>0){
           m=new Memo(args[0]);
           }
         else
           {
           m=new Memo();
           }
         m.start();
     }

 
出错信息是....  uses or override a deprecated APi
                recoplile with -deprecation for adeails.