Hi, I'm using a class extending JApplet shown here, and also a
java class that extends JPanel to do the drawing side of things.
I'm trying to get the KeyListener interface to work, but I don't know
how to add the addKeyListener in the constructor, becuase it works
differently to addMouseListener apparently.
And also a normal java class (PacmanGame) that extends JPanel:
I'm trying to insert the addKeyListener(...) method into the constructor
of PacmanGame, but I'm not sure how to do it. I think it has something to do with the contentPane, but I dont have a frame here, everything is being displayed in the HTML file that calls PacmanApplet.
Any help is much appreciated, thanks