Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user interfaces and for painting
graphics and images.
|
javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Desktop.setDefaultMenuBar(JMenuBar menuBar) |
Sets the default menu bar to use when there are no active frames.
|
Modifier and Type | Field | Description |
---|---|---|
protected JMenuBar |
JRootPane.menuBar |
The menu bar.
|
Modifier and Type | Method | Description |
---|---|---|
JMenuBar |
JApplet.getJMenuBar() |
Deprecated.
Returns the menubar set on this applet.
|
JMenuBar |
JDialog.getJMenuBar() |
Returns the menubar set on this dialog.
|
JMenuBar |
JFrame.getJMenuBar() |
Returns the menubar set on this frame.
|
JMenuBar |
JInternalFrame.getJMenuBar() |
Returns the current
JMenuBar for this
JInternalFrame , or null
if no menu bar has been set. |
JMenuBar |
JRootPane.getJMenuBar() |
Returns the menu bar from the layered pane.
|
JMenuBar |
JInternalFrame.getMenuBar() |
Deprecated.
As of Swing version 1.0.3,
replaced by
getJMenuBar() . |
JMenuBar |
JRootPane.getMenuBar() |
Deprecated.
As of Swing version 1.0.3
replaced by
getJMenuBar() . |
Modifier and Type | Method | Description |
---|---|---|
void |
JApplet.setJMenuBar(JMenuBar menuBar) |
Deprecated.
Sets the menubar for this applet.
|
void |
JDialog.setJMenuBar(JMenuBar menu) |
Sets the menubar for this dialog.
|
void |
JFrame.setJMenuBar(JMenuBar menubar) |
Sets the menubar for this frame.
|
void |
JInternalFrame.setJMenuBar(JMenuBar m) |
Sets the
menuBar property for this JInternalFrame . |
void |
JRootPane.setJMenuBar(JMenuBar menu) |
Adds or changes the menu bar used in the layered pane.
|
void |
JInternalFrame.setMenuBar(JMenuBar m) |
Deprecated.
As of Swing version 1.0.3
replaced by
setJMenuBar(JMenuBar m) . |
void |
JRootPane.setMenuBar(JMenuBar menu) |
Deprecated.
As of Swing version 1.0.3
replaced by
setJMenuBar(JMenuBar menu) . |
Modifier and Type | Class | Description |
---|---|---|
class |
BasicInternalFrameTitlePane.SystemMenuBar |
This class should be treated as a "protected" inner class.
|
Modifier and Type | Field | Description |
---|---|---|
protected JMenuBar |
BasicInternalFrameTitlePane.menuBar |
The instance of
JMenuBar . |
protected JMenuBar |
BasicMenuBarUI.menuBar |
The instance of
JMenuBar . |
Modifier and Type | Method | Description |
---|---|---|
protected JMenuBar |
BasicInternalFrameTitlePane.createSystemMenuBar() |
Returns a new instance of
JMenuBar . |
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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps