By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Superinterface?

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
"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.