Abstract Error


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Abstract Error

  1. #1
    Join Date
    Jan 2006
    Posts
    67

    Abstract Error

    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;

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    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 ...

  3. #3
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    jep, you just have to include the method
    public actionPerformed(java.awt.event.ActionEvent){...}
    in your code.

Similar Threads

  1. I can't link FreeImage to C#
    By mesh2005 in forum .NET
    Replies: 1
    Last Post: 03-06-2006, 09:16 AM
  2. Writing in HKEY_LOCAL_MACHINE...Access is denied
    By Martin in forum VB Classic
    Replies: 22
    Last Post: 12-03-2001, 04:53 AM
  3. Returning errors from SQL Server Stored Procs
    By Khalizan in forum VB Classic
    Replies: 1
    Last Post: 11-28-2001, 02:32 AM
  4. Winsock32, Connect fails to connect to a peer
    By Chris.G in forum VB Classic
    Replies: 4
    Last Post: 11-13-2000, 04:16 PM
  5. Abstract class
    By Manika in forum Java
    Replies: 1
    Last Post: 09-06-2000, 02:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center