I am getting a CLASS is not abstract and does not override abstract method....... error when I try and compile this code. I have looked at the other post regarding this error and I still can't solve it. Can anyone help?
*/import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class PropertyUI extends JFrame implements ActionListener {
public static void main(String[] args) {
JFrame frame = new JFrame("Group15PropertyMGTsystem");
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(800,400);
JPanel panel1 = new JPanel();
frame.add(panel1);
JButton button1 = new JButton("Add New Property");
panel1.add(button1);
button1.addActionListener(new Action1());
JButton button2 = new JButton("Vew Property Details");
panel1.add(button2);
button2.addActionListener(new Action2());
JButton button3 = new JButton("Ammend Property Details");
panel1.add(button3);
button3.addActionListener(new Action3());
JButton button4 = new JButton("Close");
panel1.add(button4);
button4.addActionListener(new Action4());
}
static class Action1 implements ActionListener{
public void actionPerformed(ActionEvent e){
HireEmp h=new HireEmp();
}
}
static class Action2 implements ActionListener{
public void actionPerformed (ActionEvent e){
ViewDetails v=new ViewDetails();
}
}
static class Action3 implements ActionListener{
public void actionPerformed (ActionEvent e){
ChangeIncome i=new ChangeIncome();
}
}
static class Action4 implements ActionListener{
public void actionPerformed (ActionEvent e){
System.exit(0);
}
}
}
Many thanks in advance.

New Topic/Question
Reply




MultiQuote





|