java找不到文档错误,我是新手java

javadoc not found error, I am new to java

我在 MouseWheelDemo 的主要方法中遇到错误 包 mousewheeldemo;

import java.awt.*;

public class MouseWheelDemo  extends Frame
{  

  private TextArea address;
  private Button exit;
  public MouseWheelDemo(String title)
  {

    super(title);
    address = new TextArea("Enter Address,5,40");
    exit = new Button("Exit");
    Panel north = new Panel();
    Panel south = new Panel();
    north.add(address);
    south.add(exit);
    this.add(north, BorderLayout.NORTH);
    this.add(south, BorderLayout.SOUTH);
    ColorChanger listener = new ColorChanger(this);
    address.addMouseWheelListener(listener);
    exit.addActionListener(listener);


  }

  public static void main(String[] args)
  {
    Frame f = MouseWheelDemo("Generate Event from Mouse Wheels"); //here i am getting error[enter image description here][1]
    f.setSize(500,300);
    f.setVisible(true);

  } 
}

main 方法中的 MouseWheelDemo 构造函数调用之前添加 new 关键字。

public static void main(String[] args) {
    Frame f = new MouseWheelDemo("Generate Event from Mouse Wheels"); 
    f.setSize(500,300);
    f.setVisible(true);

}