| Author |
LoginPanel is not abstract and does not override abstract method actionPerformed..
|
Accela Moon
Greenhorn
Joined: Apr 11, 2004
Posts: 20
|
|
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
Joined: Jul 08, 2003
Posts: 24081
|
|
Java is case sensitive; the abstract method is called actionPerformed.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
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.
|
[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
|
 |
 |
|
|
subject: LoginPanel is not abstract and does not override abstract method actionPerformed..
|
|
|