470,815 Members | 1,105 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

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
Jul 17 '05 #1
1 15060
"Stephen" <se*******@hotmail.com> wrote in message
news:8O*******************@newsread3.news.atl.eart hlink.net...
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


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

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.