tags:

views:

25

answers:

2

I have create a Java application using xcode. In that application i am getting the error in the following declaration -

Public class testapp extends JFrame implements ActionListener{}

the error is - "testapp is not abstract & does not override abstract method actionPerformed (java.awt.event_ActionEvents) in java.awt.events_ActionListener"

A: 

Classes that implement an interface must implement the methods defined by it. In your case you must implement the actionPerformed method in your class.

kgiannakakis
+1  A: 

You need to implement the methods defined by the interface. Paste:

public void actionPerformed(ActionEvent e)
{
}

into your code.

willcodejavaforfood
yes i have already added this.......
priya
@priya: and has it solved the problem?
Carlos Heuberger