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.
NetBeans を使用してプログラムを作成しています。エンターキーを押さずにキープレス方式にすることはできますか?
Robotクラスには、これをかなり簡単にするメソッドがあります。
Robot r = new Robot(); r.keyPress(KeyEvent.VK_ENTER);
始める必要があります。
私があなたの質問を正しく理解していたなら、あなたはキープレスイベントをシミュレートする必要があります。その場合は、Robotクラスを使用する必要があります。ロボットクラスの詳細については、こちらをご覧ください