KeyListener or key binds?
I am completely new to java and I have been teaching myself. I am trying to move an image with the keyboard. I have been having trouble with getting a KeyListener to work in a separate class and I don't understand key binds at all. Which is better to use? And is it okay to have it in a separate class? Will it even work or does it need to be in the main class because I know when I used c# it could be in a separate class but no matter what I do I can't seem to do it in java.