软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
Modifier and Type | Field and Description |
---|---|
protected JMenuBar |
JRootPane.menuBar
菜单栏。
|
Modifier and Type | Method and Description |
---|---|
JMenuBar |
JDialog.getJMenuBar()
返回设置该对话框菜单栏。
|
JMenuBar |
JApplet.getJMenuBar()
返回设置该程序的菜单栏。
|
JMenuBar |
JFrame.getJMenuBar()
返回设置该帧菜单。
|
JMenuBar |
JRootPane.getJMenuBar()
从“分层”窗格中返回菜单栏。
|
JMenuBar |
JInternalFrame.getJMenuBar()
返回当前的这
JInternalFrame
JMenuBar ,或
null 如果没有菜单栏已设置。
|
JMenuBar |
JRootPane.getMenuBar()
过时的。
作为摇摆版本1.0.3取代
getJMenuBar() 。
|
JMenuBar |
JInternalFrame.getMenuBar()
过时的。
作为摇摆版本1.0.3,取而代之的
getJMenuBar() 。
|
Modifier and Type | Method and Description |
---|---|
void |
JDialog.setJMenuBar(JMenuBar menu)
设置此对话框的菜单栏。
|
void |
JApplet.setJMenuBar(JMenuBar menuBar)
设置此程序的菜单栏。
|
void |
JFrame.setJMenuBar(JMenuBar menubar)
设置此框菜单栏。
|
void |
JRootPane.setJMenuBar(JMenuBar menu)
添加或更改在分层窗格中使用的菜单栏。
|
void |
JInternalFrame.setJMenuBar(JMenuBar m)
设置此
JInternalFrame 的
menuBar 财产。
|
void |
JRootPane.setMenuBar(JMenuBar menu)
过时的。
作为摇摆版本1.0.3取代
setJMenuBar(JMenuBar menu) 。
|
void |
JInternalFrame.setMenuBar(JMenuBar m)
过时的。
作为摇摆版本1.0.3取代
setJMenuBar(JMenuBar m) 。
|
Modifier and Type | Class and Description |
---|---|
class |
BasicInternalFrameTitlePane.SystemMenuBar
这个类应该被视为一个“受保护的”内部类。
|
Modifier and Type | Field and Description |
---|---|
protected JMenuBar |
BasicMenuBarUI.menuBar |
protected JMenuBar |
BasicInternalFrameTitlePane.menuBar |
Modifier and Type | Method and Description |
---|---|
protected JMenuBar |
BasicInternalFrameTitlePane.createSystemMenuBar() |
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.