• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

[SOLVED] must implement the inherited abstract method

 
Greenhorn
Posts: 5
Eclipse IDE Chrome 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?
 
Bartender
Posts: 4568
9
  • 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
Eclipse IDE Chrome 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_
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic