package Lab4;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class GUI_Element implements ActionListener{
// Create a frame window
public static final int WIDTH = 500;
public static final int HEIGHT = 400;
public static final int NUMBER_OF_DIGITS = 30;
private JTextField ioField;
private double result = 0.0;
public GUI_Element () {
JFrame frame = new JFrame ("Mortgage Calculator");
frame.setSize (WIDTH, HEIGHT);
frame.setLayout(new GridLayout(7,1,10,10));
}
Okay so I have this java program written. i'm trying to build a GUI for the first time, so just a beginner at this and I'm using Netbeans.
I get this error on the class name GUI_Element
GUI_Element is not abstract and does not override abstract method actionPerformed in java.awt.event.ActionListener
Indeed. I stop visiting those sites. If they can’t be bothered to make a site work across mainstream browsers, they don’t deserve my visit.
May they all wither and die.
Question
careless_monkey
Okay so I have this java program written. i'm trying to build a GUI for the first time, so just a beginner at this and I'm using Netbeans.
I get this error on the class name GUI_Element
GUI_Element is not abstract and does not override abstract method actionPerformed in java.awt.event.ActionListener
I have no idea why I'm getting this error.
Please help
Link to comment
https://www.neowin.net/forum/topic/886128-java-gui-error-message/Share on other sites
10 answers to this question
Recommended Posts