java applet problem

Status
Not open for further replies.

aaronkupen

Fully Optimized
Messages
1,848
Location
Pittsburgh, PA
Does anyone know what this error message means?


C:\Documents and Settings\Aaron\My Documents\Java\Project1.java:13: Project1 is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener
public class Project1 extends Applet implements ActionListener
^

If you want the code just reply and Ill send it.
 
http://www.daniweb.com/techtalkforums/post58331.html

To implement an interface (in this case ActionListener or ItemListener), you must write all the functions that the interface provides. One such function you're missing is actionPerformed(ActionEvent). If you put this function into your ChatClientApplication class, it will stop complaining.

Put this in your class:

Code:

public void actionPerformed(java.awt.event.ActionEvent e)
{
}

Hope this helps!


Ed
 
Status
Not open for further replies.
Back
Top Bottom