Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Abstract Error

:confused: I am new to java and keep getting this error:

Video.java:7: Video is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener
public class Video extends JApplet implements ActionListener, ItemListener
^
1 error

Am I missing an import item?

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.applet.Applet;
[472 byte] By [CB77] at [2007-11-11 8:16:07]
# 1 Re: Abstract Error
Your class does not implement a class which performs the actionPerformed() method which is required to implement the ActionListener interface. Take a look at the API documentation for ActionListener ...
nspils at 2007-11-11 22:35:57 >
# 2 Re: Abstract Error
jep, you just have to include the method
public actionPerformed(java.awt.event.ActionEvent){...}
in your code.
graviton at 2007-11-11 22:37:02 >