KeyListener is not working after the window has been moved
Basicaly, I have a frame with only a Canvas on it and a KeyListener. For some reason the keyListener stops registering my keys as soon as I have moved the Window from its starting position. I have tried several solution but none have worked. Heres the code
Code:
public class Test extends Canvas implements KeyListener
{
static final int WIDTH =700;
static final int HEIGHT =700;