敲错了
static  class ButtonHandler implements ActionListener
                                            

解决方案 »

  1.   

    多谢Ivan老兄!!!
       不过,我分较少,送上吉祥的8分,不成敬意!
       如嫌少,尽管说,我又给你加就是! :)   另外,如果我有三个Button,必须写三个 ButtonHandler类吗?(ButtonHandler1、ButtonHandler2、ButtonHandler3)?
      

  2.   

    不需要,你可以在ButtonHandler区分事件源
    比如可以用
    Button source = (Button)(e.getSource());
    if (source.getLabel().equals("Button1的label")) {
      ..点了Button1
    }
    if (source.getLabel().equals("Button2的label")) {
      ..点了Button2
    }
    if (source.getLabel().equals("Button3的label")) {
      ..点了Button3
    }
      

  3.   

    bingao:
     
      为何难受?  要谦虚