Uses of Class
javax.swing.JMenuBar
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides user interface objects built according to the Basic look and feel.
-
Uses of JMenuBar in java.awt
Modifier and TypeMethodDescriptionvoid
Desktop.setDefaultMenuBar
(JMenuBar menuBar) Sets the default menu bar to use when there are no active frames. -
Uses of JMenuBar in javax.swing
Modifier and TypeMethodDescriptionJApplet.getJMenuBar()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the menubar set on this applet.JDialog.getJMenuBar()
Returns the menubar set on this dialog.JFrame.getJMenuBar()
Returns the menubar set on this frame.JInternalFrame.getJMenuBar()
Returns the currentJMenuBar
for thisJInternalFrame
, ornull
if no menu bar has been set.JRootPane.getJMenuBar()
Returns the menu bar from the layered pane.JInternalFrame.getMenuBar()
Deprecated.JRootPane.getMenuBar()
Deprecated.As of Swing version 1.0.3 replaced bygetJMenuBar()
.Modifier and TypeMethodDescriptionvoid
JApplet.setJMenuBar
(JMenuBar menuBar) Deprecated, for removal: This API element is subject to removal in a future version.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 themenuBar
property for thisJInternalFrame
.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 bysetJMenuBar(JMenuBar m)
.void
JRootPane.setMenuBar
(JMenuBar menu) Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar menu)
. -
Uses of JMenuBar in javax.swing.plaf.basic
Modifier and TypeClassDescriptionclass
This class should be treated as a "protected" inner class.Modifier and TypeFieldDescriptionprotected JMenuBar
BasicInternalFrameTitlePane.menuBar
The instance ofJMenuBar
.protected JMenuBar
BasicMenuBarUI.menuBar
The instance ofJMenuBar
.Modifier and TypeMethodDescriptionprotected JMenuBar
BasicInternalFrameTitlePane.createSystemMenuBar()
Returns a new instance ofJMenuBar
.
getJMenuBar()
.