软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
Modifier and Type | Method and Description |
---|---|
MenuListener[] |
JMenu.getMenuListeners()
返回所有的
MenuListener s数组添加到JMenu和addmenulistener()。
|
Modifier and Type | Method and Description |
---|---|
void |
JMenu.addMenuListener(MenuListener l)
添加一个用于菜单事件的侦听器。
|
void |
JMenu.removeMenuListener(MenuListener l)
移除菜单事件的侦听器。
|
Modifier and Type | Field and Description |
---|---|
protected MenuListener |
BasicMenuUI.menuListener |
Modifier and Type | Method and Description |
---|---|
protected MenuListener |
BasicMenuUI.createMenuListener(JComponent c) |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.