• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LoginPanel is not abstract and does not override abstract method actionPerformed..

 
Accela Moon
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure what does the errors meant, I'll be thankful if anyone can explain..

Error:
[ edited to remove horrible, evil, wicked tab character, to turn off smilies, and to break really long lines -ds ]
[ April 13, 2004: Message edited by: Dirk Schreckmann ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

public void ActionPerformed(ActionEvent e)

Java is case sensitive; the abstract method is called actionPerformed.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LoginPanel is not abstract and does not override abstract method actionPerformed..
I am not sure what does the errors meant, I'll be thankful if anyone can explain..

A class that is defined to implement an interface, must provide implementations for all of the methods declared in that interface; otherwise the class must defined to be abstract.
Your LoginPanel class is defined to implement the interface ActionListener. The ActionListener interface declares a method called actionPerformed. Your LoginPanel doesn't implement this method properly. (See Ernest's post above.) So, the compiler is complaining that the class cannot be defined to not be abstract.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic