I\'m writing a simple program to test out basic GUI. The program prints a letter in the middle of the screen and allows the user to move it with the arrow keys. Everything w
I cannot tell the reason but:
A way to avoid this is to override your getPreferredSize() function and return your preferred size.