File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes LoginPanel is not abstract and does not override abstract method actionPerformed.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "LoginPanel is not abstract and does not override abstract method actionPerformed.." Watch "LoginPanel is not abstract and does not override abstract method actionPerformed.." New topic
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: 24166
    
  30


public void ActionPerformed(ActionEvent e)

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LoginPanel is not abstract and does not override abstract method actionPerformed..
 
Similar Threads
Help with Chat software
Help Me Click the Default Button
Adding a window to a container
Creating a login screen
condition seems to fail even if its true..