Mouse pointer resets to center of JFrame