你的类实现了ActionListener接口这个接口里面有一个    /**
     * Invoked when an action occurs.
     */
    public void actionPerformed(ActionEvent e);方法需要实现类来实现该方法
public void actionPerformed(ActionEvent e){}在你的方法里面写上面这两句就可以编译通过了,功能还得自己调试

解决方案 »

  1.   

    错误出在:
      public void actionperformed(ActionEvent evt)将“p”改为大写:
      public void actionPerformed(ActionEvent evt)
      

  2.   

    to 淋东,
    一看到这样的异常:
    exceptionapplet should be declared abstract; it does not
     define actionPerformed(java.awt.event.ActionEvent) in exceptionapplet首先想到的当然是exceptionapplet里没有实现actionPerformed方法。但仔细看一下,你会发现:
    “哈哈~”的程序里有actionperformed方法,他只是把大小写写错了。
    “哈哈~”只用将一个字母由小写改为大写,就可以通过编译了。不是吗?