Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[SOLVED] must implement the inherited abstract method

 
Rico Cordova
Greenhorn
Posts: 5
Chrome Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4567
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
Chrome Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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_
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic