Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はJavaを使用してグラフィカルゲームを作成していますが、それを実行するたびに、すべての動きを有効にするためにゲーム内でマウスをクリックする必要があります。最初にマウスをクリックせずに移動しようとすると、何も機能しません。どうすればこれを修正できますか。
ウィンドウでrequestFocus()を呼び出してみてください