Heh, sorry to ask a swing question on a gaming forum, but who says games cant be written with a swing front-end, right?
My app extends JFrame, and I have a JTextField that I want to attach a key handler on
I've tried doing Blahblah.addKeyListener(this), but the method thats in is directly called from my 'public static void main()', and it informs me that 'this' cant be called from a static context
I changed some things around and now its telling me 'The method addKeyListener(KeyListener) in the type Component is not applicable for the arguments (myApp)'
Is there an easier way to get key input from swing components without using 'this'?
thanks in advance, and once again, sorry for asking this sort of question here.