I am using Java to create a graphical game and every time I wish to run it, I need to click the mouse in-game in order for all the movement to be enabled. Nothing works if I try to move without clicking the mouse first. How can I fix this.
Share
Try calling requestFocus() on your window