aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes [SOLVED] must implement the inherited abstract method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "[SOLVED] must implement the inherited abstract method" Watch "[SOLVED] must implement the inherited abstract method" New topic
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: 4467
    
    8

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_
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [SOLVED] must implement the inherited abstract method