JavaTM 2 Platform
Standard Ed. 6

类 javax.swing.event.MenuKeyEvent
的使用

使用 MenuKeyEvent 的软件包
javax.swing 提供一组“轻量级”(全部是 Java 语言)组件,尽量让这些组件在所有平台上的工作方式都相同。 
javax.swing.event 供 Swing 组件触发的事件使用。 
 

javax.swing 中 MenuKeyEvent 的使用
 

参数类型为 MenuKeyEvent 的 javax.swing 中的方法
protected  void JMenuItem.fireMenuKeyPressed(MenuKeyEvent event)
          通知所有对此事件类型上的通知感兴趣的已注册侦听器。
protected  void JMenuItem.fireMenuKeyReleased(MenuKeyEvent event)
          通知所有对此事件类型上的通知感兴趣的已注册侦听器。
protected  void JMenuItem.fireMenuKeyTyped(MenuKeyEvent event)
          通知所有对此事件类型上的通知感兴趣的已注册侦听器。
 void JMenuItem.processMenuKeyEvent(MenuKeyEvent e)
          处理菜单中的快捷键。
 

javax.swing.event 中 MenuKeyEvent 的使用
 

参数类型为 MenuKeyEvent 的 javax.swing.event 中的方法
 void MenuKeyListener.menuKeyPressed(MenuKeyEvent e)
          已按下某个键时调用。
 void MenuKeyListener.menuKeyReleased(MenuKeyEvent e)
          已释放某个键时调用。
 void MenuKeyListener.menuKeyTyped(MenuKeyEvent e)
          已键入某个键时调用。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。