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

后端 未结 3 1372
时光取名叫无心
时光取名叫无心 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 18:51

    As you have used ActionListener so you are bound to override its method which is actionPerformed(ActionEvent ae) otherwise it will give this error.

提交回复
热议问题