You have to implement Actionlistener and KeyListener.
So the sig. of your Tuna class should look like this :
Code:
public class Tuna extends JPanel implements ActionListener , KeyListener{
Keep in mind you have to have the appropriate imports to use these interfaces.
Also since they are interfaces you must implement
each method that comes with them. For example the KeyListener has three, those being, keyPressed, keyRealeased , and keyTyped and while you may only need keyPressed you
still must implement the other two.
Hope this helps!
Also I hate Java doc as well, but it shows how silly the makers of Java are, but then again aren't all programmers a little silly. hehe
