Class is not abstract and does not override abstract method AWT Program

后端 未结 3 1371
时光取名叫无心
时光取名叫无心 2021-01-26 18:27
import java.awt.*;
import java.awt.event.*;

public class QuadraticSolver extends Frame implements ActionListener, WindowListener
{
private TextField tfX2;
private TextF         


        
3条回答
  •  一个人的身影
    2021-01-26 19:07

    Since QuadraticSolver implements ActionListener, it should implement actionPerformed.

    You implemented that method in an anonymous class.

    To solve it, either add an implementation of actionPerformed to QuadraticSolver or don't require QuadraticSolver to implement that interface.

提交回复
热议问题