软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
Modifier and Type | Class and Description |
---|---|
class |
CheckboxMenuItem
这个类代表一个可以包含在菜单中的复选框。
|
class |
Menu
一个
Menu 对象下拉菜单组件,从菜单栏的部署。
|
class |
MenuBar
的
MenuBar 类封装了一个菜单栏绑定到一个框架平台的概念。
|
class |
MenuItem
在菜单中的所有项目必须属于类
MenuItem ,或它的一个子类。
|
class |
PopupMenu
实现一个可以在一个组件中的指定位置动态弹出的菜单。
|
Modifier and Type | Method and Description |
---|---|
void |
MenuContainer.remove(MenuComponent comp) |
void |
Component.remove(MenuComponent popup)
移除指定的弹出式菜单的组件。
|
void |
Menu.remove(MenuComponent item)
从该菜单中删除指定的菜单项。
|
void |
MenuBar.remove(MenuComponent m)
从该菜单栏中移除指定的菜单组件。
|
void |
Frame.remove(MenuComponent m)
从该帧中移除指定的菜单栏。
|
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.