How to add image to keylistener

Hello i am making a game for my grade 12 computer programming class, it is a RPG game. I am farly new at all these key listeners and what not, so i have had some trouble trying to add an image in to a keylistener. What I am trying to do is make a 'human' move through my school to find a lost teacher. I have most of the program which I got from a book called "Java 2: Game Promgamming". This is a very good book, but it does not show you have to switch a simple rectangle to an image. I can get the rectangle to move around and everything like that., it goes all the way i want it to, but i cant set the image to it so that the 'human' that I made can go through the school. So if any of you know how to help my fix my problem it would be of great help. Thank you very much Rodent

P.S this was written on firday morning, i have till next friday so please hurry:).

[881 byte] By [Rodent14a] at [2007-10-1 15:58:06]
# 1
You're most likely painting the rectangle in the paintComponent or paint method with drawRect(...) or fillRect(...), so instead of that, use the drawImage(...) method of the Graphics object.Hope it helps,Marcin
data-lossa at 2007-7-10 23:56:31 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...