不是什么错误,只是提示你使用了不建议使用的api。
你可以看看doc,还有什么api不建议使用,把它换成新的就好了

解决方案 »

  1.   

    你使用了一个目前编译器不赞成使用的方法,最好把那个方法找到用一个更好的来代替(一般帮助文档里都有的),要么在编译的时候带个参数-deprecation,这样就能通过了。
    如:javac -deprecation HelloWorld.java
      

  2.   

    import java.awt.*;
    public class wu
    {
          public void main(String args[])
          {
               ApplctFrame MyFrame= new ApplctFrame();
         }
    }
    class ApplctFrame extends Frame
    {
         Label prompt;
         TextField input;
         Label output;
        ApplctFrame()
        {
        super("Application Grahpics Frame");
        setLayout(new FlowLayout());
        prompt=new Label("Enter a character please:");
        input=new TextField(10);
        output=new Label("                                                 ");
        add(prompt);
        add(input);
        add(output);
        pack();
        show();
        }
        
    public boolean action(Event e,Object o)
       {
       output.setText("you have entered character"+o.toString());
       return true;
       }    
    public boolean handleEvent(Event e)
       {
       if(e.id==Event.WINDOW_DESTROY)
       System.exit(0);
       return super.handleEvent(e);//是不是这个方法?
       }
    }