改成下面这个就可以了!
import java.awt.*;
import java.awt.event.*;
public class ApplicationGraphicsInOut
{
        public static void main(String args[])
        {
                new FrameInOut();
        }
}
class FrameInOut extends Frame implements ActionListener
{
        Label prompt ;
        TextField input,output;        public FrameInOut()
        {
                super("图形界面的Java Application程序");
                prompt=new Label("请输入您的名字:");
                input=new TextField(6);
                output=new TextField(20);
                setLayout(new FlowLayout());
                add(prompt);
                add(input);
                add(output);
                input.addActionListener(this);
                setSize(300,200);
                show();
        }
        public void actionPerformed(ActionEvent e)
        {
                output.setText(input.getText()+",欢迎您!");
        }
}

解决方案 »

  1.   

    其实错误一共有两处:
    1、prompt=new Label("请输入您的名字:");//这个分号改成半角的
    2、class FrameInout extends Frame implements ActionListener
    这个类名跟你调用的new FrameInOut以及构造函数不相同,因为类名的o没有大写,改为
    class FrameInOut extends Frame implements ActionListener
    ok:)??????
      

  2.   

    帮你改过!!!
    输入标点符号时不要用中文输入法!!!并注意英文的大小写!!!
    import java.awt.*;
    import java.awt.event.*;public class ApplicationGraphicsInOut
    {
    public static void main(String args[])
    {
    new FrameInout();
    }
    }class FrameInout extends Frame implements ActionListener
    {
    Label prompt ;
    TextField input,output;

    public FrameInout()
    {
    super("图形界面的Java Application程序");
    prompt=new Label();
    prompt.setText("请输入您的名字:");
    input=new TextField(6);
    output=new TextField(20);
    setLayout(new FlowLayout());
    add(prompt);
    add(input);
    add(output);
    input.addActionListener(this);
    setSize(300,200);
    show();
    }
    public void actionPerformed(ActionEvent e)
    {
    output.setText(input.getText()+",欢迎您!");
    }
    }
      

  3.   

    呵呵, beyond_xiruo(希偌) 的手总是很快噢。
      

  4.   

    同意  hoxisoft(hoxisoft)