报错The type new ActionListener(){} must implement the inherited abstract method ActionListener.actionPerformed(ActionEvent)——>类型new ActionListener(){}必须实现继承的抽象方法ActionListener.actionPerformed(ActionEvent)
解决方法:
1. 右键选中Source。
2. 选中Override/Implement Methods
3. 选中ActionListener,点OK。