Original Post
Hey guys, I got 2 quick questions that i was hoping someone on these boards could help me out w/. 1st: can someone give me a link or just type the ~3 lines of code to use a keylistener in java. at the beggining of my class i implements KeyListener. and i have the 3 methods keyPressed,keyReleased,keyTyped all overwritten. it compiles fine, but when i run, to test it...inside the keyPressed i had it do a prinln("a key was pressed"), and it never gets to it for some reason. 2nd: when i instantiate an object, what is the syntax for it? Image ship = ???? thanks guys, any help is greatly appreciated. -mitch