| Author |
[SOLVED] must implement the inherited abstract method
|
Rico Cordova
Greenhorn
Joined: Oct 05, 2011
Posts: 5
|
|
Hello, this is my first post. I'm very new to Java (less than a week) and have decided to learn the language for personal use. I have several years of programming experience in other languages so the concepts of programming aren't new to me. The syntax is.
I was following an online tutorial and found that I would receive errors when I had the same code as the author did. Since the author didn't get the errors there was no mention as to how to handle the error.
The error: "The type tuna.theHandler must implement the inherited abstract method ActionListener.actionPerformed (ActionEvent)"
The Class:
The error occurs at the declaration of the private class theHandler (line 42).
I can run this code and get a GUI with the designated fields. If I actually press Enter on any field I get a long list of errors.
If you'd like me to document those errors as well I can - it's a lengthy list so I decided I'd hold on that for now.
Any suggestions?
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3785
|
|
Hi. Welcome to the Ranch!
Check your spelling of actionPerformed carefully. To implement the method you need to get the signature exactly right.
|
 |
Rico Cordova
Greenhorn
Joined: Oct 05, 2011
Posts: 5
|
|
Wow, I feel like a fool! I expected my problem to be a subtlety of Java that I haven't mastered yet...nope I'm just having trouble with 3rd grade spelling.
Thank you very much!
_solved_
|
 |
 |
|
|
subject: [SOLVED] must implement the inherited abstract method
|
|
|