Debug your code. Place print statements in the keyPressed method to ensure it is actually being called.
Try resizing the GUI. If you see changes after that it usually indicates a painting problem.