Action.Listener exception.
The code is in this pastebin: [Java] import javax.swing.*; import java.awt.*; import java.awt.event.*; public cl - Pastebin.com
Basically, the problem is that i've got this error:
"The type swing2.Action must implement the inherited abstract method ActionListener.actionPerformed(ActionEvent)"
From the linked code. It's pretty annoying if i'm honest and i've been looking around for solutions. The error appears on line 23.
Can you guys help me out please?
Re: Action.Listener exception.
That sounds like quite an easy problem to fix, but you'll be more likely to get a response if you post your code here between code, /code tags or highlight=java, /highlight tags - put them in square brackets and you're good to go. I'd do it myself, but I don't know how to post a square bracket on this forum!
On second thoughts, I've had a quick look and you've got the wrong case in your method name. I'd be surprised if your Anglo Saxon frame title wouldn't trigger some sort of moderation on this forum. I'm quite fond of the least acceptable expletive in our quaint cant myself, but I'm not sure a request-for-bugfix is quite the place for it. Still, I guess you didn't come here for a lesson in etiquette.
Re: Action.Listener exception.
Does the class in question define the method referred to in the error message?
If the class extends an abstract class it must define the abstract methods. If you think you have defined the method, add an @Override statement just before the method definition to have the compiler check it for you.
When asking questions about code, please post the code in the forum.
And also the FULL text of the error message.