Superinterface?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stephen

    Superinterface?

    I recently downloaded Eclipse (before I had been using NetBeans), and there
    is a problem with my code to create a Java Applet in Eclipe that had never
    happend before.

    Here is the line in the file "Dice.java" :

    public class Dice extends JApplet implements ActionEvent {

    The word Dice is underlined with the error:
    "The class ActionEvent cannot be a superinterface of Dice; a superinterface
    must be an interface"

    The only difference between Eclipse and NetBeans is that in order to create
    a .java file, I must start a project. Since this is for my computer science
    class, I just created one project called "Computer Science". What is my
    problem? Thanks


  • Ryan Stewart

    #2
    Re: Superinterface?

    "Stephen" <sedelblut@hotm ail.com> wrote in message
    news:8O_Kb.3213 8$IM3.14067@new sread3.news.atl .earthlink.net. ..[color=blue]
    > I recently downloaded Eclipse (before I had been using NetBeans), and[/color]
    there[color=blue]
    > is a problem with my code to create a Java Applet in Eclipe that had never
    > happend before.
    >
    > Here is the line in the file "Dice.java" :
    >
    > public class Dice extends JApplet implements ActionEvent {
    >
    > The word Dice is underlined with the error:
    > "The class ActionEvent cannot be a superinterface of Dice; a[/color]
    superinterface[color=blue]
    > must be an interface"
    >
    > The only difference between Eclipse and NetBeans is that in order to[/color]
    create[color=blue]
    > a .java file, I must start a project. Since this is for my computer[/color]
    science[color=blue]
    > class, I just created one project called "Computer Science". What is my
    > problem? Thanks[/color]

    Your problem is exactly what it's telling you: ActionEvent is not an
    interface. Do you maybe mean ActionListener?


    Comment

    Working...