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.
(not ) にニーモニック (つまりAlt+ 何か)を追加するにはどうすればよいですか?java.awt.Menujavax.swing.JMenu
java.awt.Menu
javax.swing.JMenu
それはJMenu簡単です:
JMenu
mnFile.setMnemonic(KeyEvent.VK_F);
しかし、 に関する関連情報が見つかりませんMenu。KeyListenerこれを達成するには、低レベルのメカニズム (つまり ) を使用する必要がありますか?
Menu
KeyListener
Windows 10 と Java 8 を使用しています。