import java.awt.*;
import java.awt.event.*;
public class QuadraticSolver extends Frame implements ActionListener, WindowListener
{
private TextField tfX2;
private TextF
As you have used ActionListener so you are bound to override its method which is actionPerformed(ActionEvent ae) otherwise it will give this error.
I Noticed that you implement actionperformed for your actionlistener of your button.When you declare that you are going to implement an interface, you need a separate actionperformed method in your class. like
public class QuadraticSolver implements ActionListener{
@Override
public void actionPerformed(ActionEvent){}
}
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.