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.
optionsMenu = new JMenu("Options"); optionsMenu.setMnemonic(KeyEvent.VK_O); optionsMenu.getAccessibleContext().setAccessibleDescription("Options Menu"); menuBar.add(optionsMenu);
但是,当我在运行时实际按下 O 时,菜单并没有打开。是什么赋予了?