<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 05:56:20 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  JMenuBar
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/JMenuBar.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../javax/swing/JMenu.WinListener.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../javax/swing/JMenuBar.AccessibleJMenuBar.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="JMenuBar.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.JComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.swing</FONT>
<BR>
Class  JMenuBar</H2>
<PRE>
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--<A HREF="../../javax/swing/JComponent.html">javax.swing.JComponent</A>
                    |
                    +--<B>javax.swing.JMenuBar</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../javax/swing/plaf/basic/BasicInternalFrameTitlePane.SystemMenuBar.html">BasicInternalFrameTitlePane.SystemMenuBar</A></DD>
</DL>
<HR>
<DL>
<DT>public class <B>JMenuBar</B><DT>extends <A HREF="../../javax/swing/JComponent.html">JComponent</A><DT>implements <A HREF="../../javax/accessibility/Accessible.html">Accessible</A>, <A HREF="../../javax/swing/MenuElement.html">MenuElement</A></DL>

<P>
An implementation of a MenuBar. You add JMenu objects to the
 menu bar to construct a menu. When the user selects a JMenu
 object, its associated JPopupMenu is displayed, allowing the
 user to select one of the JMenuItems on it.
 <p>
 For the keyboard keys used by this component in the standard Look and
 Feel (L&F) renditions, see the
 <a href="doc-files/Key-Index.html#JMenuBar">JMenuBar</a> key assignments.
 <p>
 <strong>Warning:</strong>
 Serialized objects of this class will not be compatible with 
 future Swing releases.  The current serialization support is appropriate
 for short term storage or RMI between applications running the same
 version of Swing.  A future release of Swing will provide support for
 long term persistence.
<P>
<DL>
<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JMenu.html"><CODE>JMenu</CODE></A>, 
<A HREF="../../javax/swing/JPopupMenu.html"><CODE>JPopupMenu</CODE></A>, 
<A HREF="../../javax/swing/JMenuItem.html"><CODE>JMenuItem</CODE></A>, <A HREF="../../serialized-form.html#javax.swing.JMenuBar">Serialized Form</A></DL>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->

<A NAME="inner_class_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Inner Class Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.AccessibleJMenuBar.html">JMenuBar.AccessibleJMenuBar</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The class used to obtain the accessible role for this object.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="inner_classes_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Inner classes inherited from class javax.swing.<A HREF="../../javax/swing/JComponent.html">JComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JComponent.AccessibleJComponent.html">JComponent.AccessibleJComponent</A></B></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="fields_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class javax.swing.<A HREF="../../javax/swing/JComponent.html">JComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../javax/swing/JComponent.html#accessibleContext">accessibleContext</A>,  
<A HREF="../../javax/swing/JComponent.html#listenerList">listenerList</A>,  
<A HREF="../../javax/swing/JComponent.html#TOOL_TIP_TEXT_KEY">TOOL_TIP_TEXT_KEY</A>,  
<A HREF="../../javax/swing/JComponent.html#ui">ui</A>,  
<A HREF="../../javax/swing/JComponent.html#UNDEFINED_CONDITION">UNDEFINED_CONDITION</A>,  
<A HREF="../../javax/swing/JComponent.html#WHEN_ANCESTOR_OF_FOCUSED_COMPONENT">WHEN_ANCESTOR_OF_FOCUSED_COMPONENT</A>,  
<A HREF="../../javax/swing/JComponent.html#WHEN_FOCUSED">WHEN_FOCUSED</A>,  
<A HREF="../../javax/swing/JComponent.html#WHEN_IN_FOCUSED_WINDOW">WHEN_IN_FOCUSED_WINDOW</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class java.awt.Component</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>BOTTOM_ALIGNMENT,  
CENTER_ALIGNMENT,  
LEFT_ALIGNMENT,  
RIGHT_ALIGNMENT,  
TOP_ALIGNMENT</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#JMenuBar()">JMenuBar</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new menu bar.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/JMenu.html">JMenu</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#add(javax.swing.JMenu)">add</A></B>(<A HREF="../../javax/swing/JMenu.html">JMenu</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Appends the specified menu to the end of the menu bar.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#addNotify()">addNotify</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overrides <code>JComponent.addNotify</code> to register this
 menu bar with the current <CODE>KeyboardManager</CODE>.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the AccessibleContext associated with this JComponent</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Component</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getComponent()">getComponent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implemented to be a MenuElement.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Component</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getComponentAtIndex(int)">getComponentAtIndex</A></B>(int&nbsp;i)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the component at the specified index.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getComponentIndex(java.awt.Component)">getComponentIndex</A></B>(java.awt.Component&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of the specified component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/JMenu.html">JMenu</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getHelpMenu()">getHelpMenu</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the help menu for the menu bar.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Insets</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getMargin()">getMargin</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the margin between the menubar's border and
 its menus.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/JMenu.html">JMenu</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getMenu(int)">getMenu</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the menu at the specified position in the menu bar.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getMenuCount()">getMenuCount</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of items in the menu bar.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/SingleSelectionModel.html">SingleSelectionModel</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getSelectionModel()">getSelectionModel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the model object that handles single selections.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/MenuElement.html">MenuElement</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getSubElements()">getSubElements</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implemented to be a MenuElement -- returns the menus in this menu 
 bar.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../javax/swing/plaf/MenuBarUI.html">MenuBarUI</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getUI()">getUI</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the menubar's current UI.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#getUIClassID()">getUIClassID</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the L&F class that renders this component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#isBorderPainted()">isBorderPainted</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a the Menubar's border should be painted.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#isManagingFocus()">isManagingFocus</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true to indicate that this component manages focus
 events internally.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#isSelected()">isSelected</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the MenuBar currently has a component selected</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#menuSelectionChanged(boolean)">menuSelectionChanged</A></B>(boolean&nbsp;isIncluded)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implemented to be a MenuElement -- does nothing.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#paintBorder(java.awt.Graphics)">paintBorder</A></B>(java.awt.Graphics&nbsp;g)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paint the menubar's border if BorderPainted property is true.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#paramString()">paramString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this JMenuBar.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#processKeyEvent(java.awt.event.KeyEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)">processKeyEvent</A></B>(java.awt.event.KeyEvent&nbsp;e,
                <A HREF="../../javax/swing/MenuElement.html">MenuElement</A>[]&nbsp;path,
                <A HREF="../../javax/swing/MenuSelectionManager.html">MenuSelectionManager</A>&nbsp;manager)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implemented to be a MenuElement -- does nothing.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#processMouseEvent(java.awt.event.MouseEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)">processMouseEvent</A></B>(java.awt.event.MouseEvent&nbsp;event,
                  <A HREF="../../javax/swing/MenuElement.html">MenuElement</A>[]&nbsp;path,
                  <A HREF="../../javax/swing/MenuSelectionManager.html">MenuSelectionManager</A>&nbsp;manager)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implemented to be a MenuElement -- does nothing.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#removeNotify()">removeNotify</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overrides <code>JComponent.removeNotify</code> to unregister this
 menu bar with the current <CODE>KeyboardManager</CODE>.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#setBorderPainted(boolean)">setBorderPainted</A></B>(boolean&nbsp;s)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines whether the MenuBar's current border will be painted.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#setHelpMenu(javax.swing.JMenu)">setHelpMenu</A></B>(<A HREF="../../javax/swing/JMenu.html">JMenu</A>&nbsp;menu)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the help menu that appears when the user selects the
 "help" option in the menu bar.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#setMargin(java.awt.Insets)">setMargin</A></B>(java.awt.Insets&nbsp;margin)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the margin between the menubar's border and
 its menus.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#setSelected(java.awt.Component)">setSelected</A></B>(java.awt.Component&nbsp;sel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the currently selected component, producing a
 a change to the selection model.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#setSelectionModel(javax.swing.SingleSelectionModel)">setSelectionModel</A></B>(<A HREF="../../javax/swing/SingleSelectionModel.html">SingleSelectionModel</A>&nbsp;model)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the model object to handle single selections.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#setUI(javax.swing.plaf.MenuBarUI)">setUI</A></B>(<A HREF="../../javax/swing/plaf/MenuBarUI.html">MenuBarUI</A>&nbsp;ui)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the L&F object that renders this component.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../javax/swing/JMenuBar.html#updateUI()">updateUI</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Notification from the UIFactory that the L&F has changed.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.swing.<A HREF="../../javax/swing/JComponent.html">JComponent</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../javax/swing/JComponent.html#addAncestorListener(javax.swing.event.AncestorListener)">addAncestorListener</A>, 
<A HREF="../../javax/swing/JComponent.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#addVetoableChangeListener(java.beans.VetoableChangeListener)">addVetoableChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#computeVisibleRect(java.awt.Rectangle)">computeVisibleRect</A>, 
<A HREF="../../javax/swing/JComponent.html#contains(int, int)">contains</A>, 
<A HREF="../../javax/swing/JComponent.html#createToolTip()">createToolTip</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, boolean, boolean)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, byte, byte)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, char, char)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, double, double)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, float, float)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, int, int)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, long, long)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#firePropertyChange(java.lang.String, short, short)">firePropertyChange</A>, 
<A HREF="../../javax/swing/JComponent.html#fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)">fireVetoableChange</A>, 
<A HREF="../../javax/swing/JComponent.html#getActionForKeyStroke(javax.swing.KeyStroke)">getActionForKeyStroke</A>, 
<A HREF="../../javax/swing/JComponent.html#getAlignmentX()">getAlignmentX</A>, 
<A HREF="../../javax/swing/JComponent.html#getAlignmentY()">getAlignmentY</A>, 
<A HREF="../../javax/swing/JComponent.html#getAutoscrolls()">getAutoscrolls</A>, 
<A HREF="../../javax/swing/JComponent.html#getBorder()">getBorder</A>, 
<A HREF="../../javax/swing/JComponent.html#getBounds(java.awt.Rectangle)">getBounds</A>, 
<A HREF="../../javax/swing/JComponent.html#getClientProperty(java.lang.Object)">getClientProperty</A>, 
<A HREF="../../javax/swing/JComponent.html#getComponentGraphics(java.awt.Graphics)">getComponentGraphics</A>, 
<A HREF="../../javax/swing/JComponent.html#getConditionForKeyStroke(javax.swing.KeyStroke)">getConditionForKeyStroke</A>, 
<A HREF="../../javax/swing/JComponent.html#getDebugGraphicsOptions()">getDebugGraphicsOptions</A>, 
<A HREF="../../javax/swing/JComponent.html#getGraphics()">getGraphics</A>, 
<A HREF="../../javax/swing/JComponent.html#getHeight()">getHeight</A>, 
<A HREF="../../javax/swing/JComponent.html#getInsets()">getInsets</A>, 
<A HREF="../../javax/swing/JComponent.html#getInsets(java.awt.Insets)">getInsets</A>, 
<A HREF="../../javax/swing/JComponent.html#getLocation(java.awt.Point)">getLocation</A>, 
<A HREF="../../javax/swing/JComponent.html#getMaximumSize()">getMaximumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getMinimumSize()">getMinimumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getNextFocusableComponent()">getNextFocusableComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#getPreferredSize()">getPreferredSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getRegisteredKeyStrokes()">getRegisteredKeyStrokes</A>, 
<A HREF="../../javax/swing/JComponent.html#getRootPane()">getRootPane</A>, 
<A HREF="../../javax/swing/JComponent.html#getSize(java.awt.Dimension)">getSize</A>, 
<A HREF="../../javax/swing/JComponent.html#getToolTipLocation(java.awt.event.MouseEvent)">getToolTipLocation</A>, 
<A HREF="../../javax/swing/JComponent.html#getToolTipText()">getToolTipText</A>, 
<A HREF="../../javax/swing/JComponent.html#getToolTipText(java.awt.event.MouseEvent)">getToolTipText</A>, 
<A HREF="../../javax/swing/JComponent.html#getTopLevelAncestor()">getTopLevelAncestor</A>, 
<A HREF="../../javax/swing/JComponent.html#getVisibleRect()">getVisibleRect</A>, 
<A HREF="../../javax/swing/JComponent.html#getWidth()">getWidth</A>, 
<A HREF="../../javax/swing/JComponent.html#getX()">getX</A>, 
<A HREF="../../javax/swing/JComponent.html#getY()">getY</A>, 
<A HREF="../../javax/swing/JComponent.html#grabFocus()">grabFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#hasFocus()">hasFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#isDoubleBuffered()">isDoubleBuffered</A>, 
<A HREF="../../javax/swing/JComponent.html#isFocusCycleRoot()">isFocusCycleRoot</A>, 
<A HREF="../../javax/swing/JComponent.html#isFocusTraversable()">isFocusTraversable</A>, 
<A HREF="../../javax/swing/JComponent.html#isLightweightComponent(java.awt.Component)">isLightweightComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#isOpaque()">isOpaque</A>, 
<A HREF="../../javax/swing/JComponent.html#isOptimizedDrawingEnabled()">isOptimizedDrawingEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#isPaintingTile()">isPaintingTile</A>, 
<A HREF="../../javax/swing/JComponent.html#isRequestFocusEnabled()">isRequestFocusEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#isValidateRoot()">isValidateRoot</A>, 
<A HREF="../../javax/swing/JComponent.html#paint(java.awt.Graphics)">paint</A>, 
<A HREF="../../javax/swing/JComponent.html#paintChildren(java.awt.Graphics)">paintChildren</A>, 
<A HREF="../../javax/swing/JComponent.html#paintComponent(java.awt.Graphics)">paintComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#paintImmediately(int, int, int, int)">paintImmediately</A>, 
<A HREF="../../javax/swing/JComponent.html#paintImmediately(java.awt.Rectangle)">paintImmediately</A>, 
<A HREF="../../javax/swing/JComponent.html#processComponentKeyEvent(java.awt.event.KeyEvent)">processComponentKeyEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#processFocusEvent(java.awt.event.FocusEvent)">processFocusEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#processKeyEvent(java.awt.event.KeyEvent)">processKeyEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#processMouseMotionEvent(java.awt.event.MouseEvent)">processMouseMotionEvent</A>, 
<A HREF="../../javax/swing/JComponent.html#putClientProperty(java.lang.Object, java.lang.Object)">putClientProperty</A>, 
<A HREF="../../javax/swing/JComponent.html#registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)">registerKeyboardAction</A>, 
<A HREF="../../javax/swing/JComponent.html#registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)">registerKeyboardAction</A>, 
<A HREF="../../javax/swing/JComponent.html#removeAncestorListener(javax.swing.event.AncestorListener)">removeAncestorListener</A>, 
<A HREF="../../javax/swing/JComponent.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#removeVetoableChangeListener(java.beans.VetoableChangeListener)">removeVetoableChangeListener</A>, 
<A HREF="../../javax/swing/JComponent.html#repaint(long, int, int, int, int)">repaint</A>, 
<A HREF="../../javax/swing/JComponent.html#repaint(java.awt.Rectangle)">repaint</A>, 
<A HREF="../../javax/swing/JComponent.html#requestDefaultFocus()">requestDefaultFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#requestFocus()">requestFocus</A>, 
<A HREF="../../javax/swing/JComponent.html#resetKeyboardActions()">resetKeyboardActions</A>, 
<A HREF="../../javax/swing/JComponent.html#reshape(int, int, int, int)">reshape</A>, 
<A HREF="../../javax/swing/JComponent.html#revalidate()">revalidate</A>, 
<A HREF="../../javax/swing/JComponent.html#scrollRectToVisible(java.awt.Rectangle)">scrollRectToVisible</A>, 
<A HREF="../../javax/swing/JComponent.html#setAlignmentX(float)">setAlignmentX</A>, 
<A HREF="../../javax/swing/JComponent.html#setAlignmentY(float)">setAlignmentY</A>, 
<A HREF="../../javax/swing/JComponent.html#setAutoscrolls(boolean)">setAutoscrolls</A>, 
<A HREF="../../javax/swing/JComponent.html#setBackground(java.awt.Color)">setBackground</A>, 
<A HREF="../../javax/swing/JComponent.html#setBorder(javax.swing.border.Border)">setBorder</A>, 
<A HREF="../../javax/swing/JComponent.html#setDebugGraphicsOptions(int)">setDebugGraphicsOptions</A>, 
<A HREF="../../javax/swing/JComponent.html#setDoubleBuffered(boolean)">setDoubleBuffered</A>, 
<A HREF="../../javax/swing/JComponent.html#setEnabled(boolean)">setEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#setFont(java.awt.Font)">setFont</A>, 
<A HREF="../../javax/swing/JComponent.html#setForeground(java.awt.Color)">setForeground</A>, 
<A HREF="../../javax/swing/JComponent.html#setMaximumSize(java.awt.Dimension)">setMaximumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#setMinimumSize(java.awt.Dimension)">setMinimumSize</A>, 
<A HREF="../../javax/swing/JComponent.html#setNextFocusableComponent(java.awt.Component)">setNextFocusableComponent</A>, 
<A HREF="../../javax/swing/JComponent.html#setOpaque(boolean)">setOpaque</A>, 
<A HREF="../../javax/swing/JComponent.html#setPreferredSize(java.awt.Dimension)">setPreferredSize</A>, 
<A HREF="../../javax/swing/JComponent.html#setRequestFocusEnabled(boolean)">setRequestFocusEnabled</A>, 
<A HREF="../../javax/swing/JComponent.html#setToolTipText(java.lang.String)">setToolTipText</A>, 
<A HREF="../../javax/swing/JComponent.html#setUI(javax.swing.plaf.ComponentUI)">setUI</A>, 
<A HREF="../../javax/swing/JComponent.html#setVisible(boolean)">setVisible</A>, 
<A HREF="../../javax/swing/JComponent.html#unregisterKeyboardAction(javax.swing.KeyStroke)">unregisterKeyboardAction</A>, 
<A HREF="../../javax/swing/JComponent.html#update(java.awt.Graphics)">update</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.awt.Container</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>add, 
add, 
add, 
add, 
add, 
addContainerListener, 
addImpl, 
countComponents, 
deliverEvent, 
doLayout, 
getComponent, 
getComponentAt, 
getComponentAt, 
getComponentCount, 
getComponents, 
getLayout, 
insets, 
invalidate, 
isAncestorOf, 
layout, 
list, 
list, 
locate, 
minimumSize, 
paintComponents, 
preferredSize, 
print, 
printComponents, 
processContainerEvent, 
processEvent, 
remove, 
remove, 
removeAll, 
removeContainerListener, 
setLayout, 
validate, 
validateTree</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.awt.Component</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>action, 
add, 
addComponentListener, 
addFocusListener, 
addKeyListener, 
addMouseListener, 
addMouseMotionListener, 
bounds, 
checkImage, 
checkImage, 
contains, 
createImage, 
createImage, 
disable, 
disableEvents, 
dispatchEvent, 
enable, 
enable, 
enableEvents, 
getBackground, 
getBounds, 
getColorModel, 
getCursor, 
getFont, 
getFontMetrics, 
getForeground, 
getLocale, 
getLocation, 
getLocationOnScreen, 
getName, 
getParent, 
getPeer, 
getSize, 
getToolkit, 
getTreeLock, 
gotFocus, 
handleEvent, 
hide, 
imageUpdate, 
inside, 
isEnabled, 
isShowing, 
isValid, 
isVisible, 
keyDown, 
keyUp, 
list, 
list, 
list, 
location, 
lostFocus, 
mouseDown, 
mouseDrag, 
mouseEnter, 
mouseExit, 
mouseMove, 
mouseUp, 
move, 
nextFocus, 
paintAll, 
postEvent, 
prepareImage, 
prepareImage, 
printAll, 
processComponentEvent, 
processMouseEvent, 
remove, 
removeComponentListener, 
removeFocusListener, 
removeKeyListener, 
removeMouseListener, 
removeMouseMotionListener, 
repaint, 
repaint, 
repaint, 
resize, 
resize, 
setBounds, 
setBounds, 
setCursor, 
setLocale, 
setLocation, 
setLocation, 
setName, 
setSize, 
setSize, 
show, 
show, 
size, 
toString, 
transferFocus</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
wait, 
wait, 
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="JMenuBar()"><!-- --></A><H3>
JMenuBar</H3>
<PRE>
public <B>JMenuBar</B>()</PRE>
<DL>
<DD>Creates a new menu bar.</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getUI()"><!-- --></A><H3>
getUI</H3>
<PRE>
public <A HREF="../../javax/swing/plaf/MenuBarUI.html">MenuBarUI</A> <B>getUI</B>()</PRE>
<DL>
<DD>Returns the menubar's current UI.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JMenuBar.html#setUI(javax.swing.plaf.MenuBarUI)"><CODE>setUI(javax.swing.plaf.MenuBarUI)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setUI(javax.swing.plaf.MenuBarUI)"><!-- --></A><H3>
setUI</H3>
<PRE>
public void <B>setUI</B>(<A HREF="../../javax/swing/plaf/MenuBarUI.html">MenuBarUI</A>&nbsp;ui)</PRE>
<DL>
<DD>Sets the L&F object that renders this component.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ui</CODE> - the new MenuBarUI L&F object<DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>UIDefaults.getUI(javax.swing.JComponent)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="updateUI()"><!-- --></A><H3>
updateUI</H3>
<PRE>
public void <B>updateUI</B>()</PRE>
<DL>
<DD>Notification from the UIFactory that the L&F has changed. 
 Called to replace the UI with the latest version from the 
 UIFactory.<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#updateUI()">updateUI</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#updateUI()"><CODE>JComponent.updateUI()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getUIClassID()"><!-- --></A><H3>
getUIClassID</H3>
<PRE>
public java.lang.String <B>getUIClassID</B>()</PRE>
<DL>
<DD>Returns the name of the L&F class that renders this component.<DD><DL>
<DT><B>Returns:</B><DD>"MenuBarUI"<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#getUIClassID()">getUIClassID</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#getUIClassID()"><CODE>JComponent.getUIClassID()</CODE></A>, 
<A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>UIDefaults.getUI(javax.swing.JComponent)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSelectionModel()"><!-- --></A><H3>
getSelectionModel</H3>
<PRE>
public <A HREF="../../javax/swing/SingleSelectionModel.html">SingleSelectionModel</A> <B>getSelectionModel</B>()</PRE>
<DL>
<DD>Returns the model object that handles single selections.<DD><DL>
<DT><B>Returns:</B><DD>the SingleSelectionModel in use<DT><B>See Also: </B><DD><A HREF="../../javax/swing/SingleSelectionModel.html"><CODE>SingleSelectionModel</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setSelectionModel(javax.swing.SingleSelectionModel)"><!-- --></A><H3>
setSelectionModel</H3>
<PRE>
public void <B>setSelectionModel</B>(<A HREF="../../javax/swing/SingleSelectionModel.html">SingleSelectionModel</A>&nbsp;model)</PRE>
<DL>
<DD>Set the model object to handle single selections.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>model</CODE> - the SingleSelectionModel to use<DT><B>See Also: </B><DD><A HREF="../../javax/swing/SingleSelectionModel.html"><CODE>SingleSelectionModel</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="add(javax.swing.JMenu)"><!-- --></A><H3>
add</H3>
<PRE>
public <A HREF="../../javax/swing/JMenu.html">JMenu</A> <B>add</B>(<A HREF="../../javax/swing/JMenu.html">JMenu</A>&nbsp;c)</PRE>
<DL>
<DD>Appends the specified menu to the end of the menu bar.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the JMenu component to add</DL>
</DD>
</DL>
<HR>

<A NAME="getMenu(int)"><!-- --></A><H3>
getMenu</H3>
<PRE>
public <A HREF="../../javax/swing/JMenu.html">JMenu</A> <B>getMenu</B>(int&nbsp;index)</PRE>
<DL>
<DD>Gets the menu at the specified position in the menu bar.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - an int giving the position in the menu bar, where
               0 is the first position<DT><B>Returns:</B><DD>the JMenu at that position</DL>
</DD>
</DL>
<HR>

<A NAME="getMenuCount()"><!-- --></A><H3>
getMenuCount</H3>
<PRE>
public int <B>getMenuCount</B>()</PRE>
<DL>
<DD>Returns the number of items in the menu bar.<DD><DL>
<DT><B>Returns:</B><DD>the number of items in the menu bar</DL>
</DD>
</DL>
<HR>

<A NAME="setHelpMenu(javax.swing.JMenu)"><!-- --></A><H3>
setHelpMenu</H3>
<PRE>
public void <B>setHelpMenu</B>(<A HREF="../../javax/swing/JMenu.html">JMenu</A>&nbsp;menu)</PRE>
<DL>
<DD>Sets the help menu that appears when the user selects the
 "help" option in the menu bar. This method is not yet implemented.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>menu</CODE> - the JMenu that delivers help to the user</DL>
</DD>
</DL>
<HR>

<A NAME="getHelpMenu()"><!-- --></A><H3>
getHelpMenu</H3>
<PRE>
public <A HREF="../../javax/swing/JMenu.html">JMenu</A> <B>getHelpMenu</B>()</PRE>
<DL>
<DD>Gets the help menu for the menu bar.<DD><DL>
<DT><B>Returns:</B><DD>the JMenu that delivers help to the user</DL>
</DD>
</DL>
<HR>

<A NAME="getComponentAtIndex(int)"><!-- --></A><H3>
getComponentAtIndex</H3>
<PRE>
public java.awt.Component <B>getComponentAtIndex</B>(int&nbsp;i)</PRE>
<DL>
<DD>Returns the component at the specified index.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - an int specifying the position, where 0 = first<DT><B>Returns:</B><DD>the Component at the position, or null for an
         invalid index</DL>
</DD>
</DL>
<HR>

<A NAME="getComponentIndex(java.awt.Component)"><!-- --></A><H3>
getComponentIndex</H3>
<PRE>
public int <B>getComponentIndex</B>(java.awt.Component&nbsp;c)</PRE>
<DL>
<DD>Returns the index of the specified component.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the Component to find<DT><B>Returns:</B><DD>an int giving the component's position, where 0 = first</DL>
</DD>
</DL>
<HR>

<A NAME="setSelected(java.awt.Component)"><!-- --></A><H3>
setSelected</H3>
<PRE>
public void <B>setSelected</B>(java.awt.Component&nbsp;sel)</PRE>
<DL>
<DD>Sets the currently selected component, producing a
 a change to the selection model.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sel</CODE> - the Component to select</DL>
</DD>
</DL>
<HR>

<A NAME="isSelected()"><!-- --></A><H3>
isSelected</H3>
<PRE>
public boolean <B>isSelected</B>()</PRE>
<DL>
<DD>Returns true if the MenuBar currently has a component selected<DD><DL>
<DT><B>Returns:</B><DD>true if a selection has been made, else false</DL>
</DD>
</DL>
<HR>

<A NAME="isBorderPainted()"><!-- --></A><H3>
isBorderPainted</H3>
<PRE>
public boolean <B>isBorderPainted</B>()</PRE>
<DL>
<DD>Returns true if a the Menubar's border should be painted.<DD><DL>
<DT><B>Returns:</B><DD>true if the border should be painted, else false</DL>
</DD>
</DL>
<HR>

<A NAME="setBorderPainted(boolean)"><!-- --></A><H3>
setBorderPainted</H3>
<PRE>
public void <B>setBorderPainted</B>(boolean&nbsp;s)</PRE>
<DL>
<DD>Determines whether the MenuBar's current border will be painted.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - true if the border should be painted, else false</DL>
</DD>
</DL>
<HR>

<A NAME="paintBorder(java.awt.Graphics)"><!-- --></A><H3>
paintBorder</H3>
<PRE>
protected void <B>paintBorder</B>(java.awt.Graphics&nbsp;g)</PRE>
<DL>
<DD>Paint the menubar's border if BorderPainted property is true.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the Graphics context to use for painting<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#paintBorder(java.awt.Graphics)">paintBorder</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#paint(java.awt.Graphics)"><CODE>JComponent.paint(java.awt.Graphics)</CODE></A>, 
<A HREF="../../javax/swing/JComponent.html#setBorder(javax.swing.border.Border)"><CODE>JComponent.setBorder(javax.swing.border.Border)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setMargin(java.awt.Insets)"><!-- --></A><H3>
setMargin</H3>
<PRE>
public void <B>setMargin</B>(java.awt.Insets&nbsp;margin)</PRE>
<DL>
<DD>Sets the margin between the menubar's border and
 its menus. Setting to null will cause the menubar to
 use the default margins.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>margin</CODE> - an Insets object containing the margin values<DT><B>See Also: </B><DD><CODE>Insets</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getMargin()"><!-- --></A><H3>
getMargin</H3>
<PRE>
public java.awt.Insets <B>getMargin</B>()</PRE>
<DL>
<DD>Returns the margin between the menubar's border and
 its menus.<DD><DL>
<DT><B>Returns:</B><DD>an Insets object containing the margin values<DT><B>See Also: </B><DD><CODE>Insets</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="processMouseEvent(java.awt.event.MouseEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)"><!-- --></A><H3>
processMouseEvent</H3>
<PRE>
public void <B>processMouseEvent</B>(java.awt.event.MouseEvent&nbsp;event,
                              <A HREF="../../javax/swing/MenuElement.html">MenuElement</A>[]&nbsp;path,
                              <A HREF="../../javax/swing/MenuSelectionManager.html">MenuSelectionManager</A>&nbsp;manager)</PRE>
<DL>
<DD>Implemented to be a MenuElement -- does nothing.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/MenuElement.html#processMouseEvent(java.awt.event.MouseEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)">processMouseEvent</A> in interface <A HREF="../../javax/swing/MenuElement.html">MenuElement</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JMenuBar.html#getSubElements()"><CODE>getSubElements()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="processKeyEvent(java.awt.event.KeyEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)"><!-- --></A><H3>
processKeyEvent</H3>
<PRE>
public void <B>processKeyEvent</B>(java.awt.event.KeyEvent&nbsp;e,
                            <A HREF="../../javax/swing/MenuElement.html">MenuElement</A>[]&nbsp;path,
                            <A HREF="../../javax/swing/MenuSelectionManager.html">MenuSelectionManager</A>&nbsp;manager)</PRE>
<DL>
<DD>Implemented to be a MenuElement -- does nothing.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/MenuElement.html#processKeyEvent(java.awt.event.KeyEvent, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)">processKeyEvent</A> in interface <A HREF="../../javax/swing/MenuElement.html">MenuElement</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JMenuBar.html#getSubElements()"><CODE>getSubElements()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="menuSelectionChanged(boolean)"><!-- --></A><H3>
menuSelectionChanged</H3>
<PRE>
public void <B>menuSelectionChanged</B>(boolean&nbsp;isIncluded)</PRE>
<DL>
<DD>Implemented to be a MenuElement -- does nothing.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/MenuElement.html#menuSelectionChanged(boolean)">menuSelectionChanged</A> in interface <A HREF="../../javax/swing/MenuElement.html">MenuElement</A><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JMenuBar.html#getSubElements()"><CODE>getSubElements()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getSubElements()"><!-- --></A><H3>
getSubElements</H3>
<PRE>
public <A HREF="../../javax/swing/MenuElement.html">MenuElement</A>[] <B>getSubElements</B>()</PRE>
<DL>
<DD>Implemented to be a MenuElement -- returns the menus in this menu 
 bar. This is the reason for implementing the MenuElement
 interface -- so that the menu bar can be treated the same as
 other menu elements.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/MenuElement.html#getSubElements()">getSubElements</A> in interface <A HREF="../../javax/swing/MenuElement.html">MenuElement</A></DL>
</DD>
</DL>
<HR>

<A NAME="getComponent()"><!-- --></A><H3>
getComponent</H3>
<PRE>
public java.awt.Component <B>getComponent</B>()</PRE>
<DL>
<DD>Implemented to be a MenuElement. Returns this object.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/swing/MenuElement.html#getComponent()">getComponent</A> in interface <A HREF="../../javax/swing/MenuElement.html">MenuElement</A><DT><B>Returns:</B><DD>the current Component (this)<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JMenuBar.html#getSubElements()"><CODE>getSubElements()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="paramString()"><!-- --></A><H3>
paramString</H3>
<PRE>
protected java.lang.String <B>paramString</B>()</PRE>
<DL>
<DD>Returns a string representation of this JMenuBar. This method 
 is intended to be used only for debugging purposes, and the 
 content and format of the returned string may vary between      
 implementations. The returned string may be empty but may not 
 be <code>null</code>.
 <P>
 Overriding paramString() to provide information about the
 specific new aspects of the JFC components.<DD><DL>
<DT><B>Returns:</B><DD>a string representation of this JMenuBar.<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#paramString()">paramString</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="getAccessibleContext()"><!-- --></A><H3>
getAccessibleContext</H3>
<PRE>
public <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A> <B>getAccessibleContext</B>()</PRE>
<DL>
<DD>Get the AccessibleContext associated with this JComponent<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../javax/accessibility/Accessible.html#getAccessibleContext()">getAccessibleContext</A> in interface <A HREF="../../javax/accessibility/Accessible.html">Accessible</A><DT><B>Returns:</B><DD>the AccessibleContext of this JComponent<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#getAccessibleContext()">getAccessibleContext</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="isManagingFocus()"><!-- --></A><H3>
isManagingFocus</H3>
<PRE>
public boolean <B>isManagingFocus</B>()</PRE>
<DL>
<DD>Returns true to indicate that this component manages focus
 events internally.<DD><DL>
<DT><B>Returns:</B><DD>true<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#isManagingFocus()">isManagingFocus</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="addNotify()"><!-- --></A><H3>
addNotify</H3>
<PRE>
public void <B>addNotify</B>()</PRE>
<DL>
<DD>Overrides <code>JComponent.addNotify</code> to register this
 menu bar with the current <CODE>KeyboardManager</CODE>.<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#addNotify()">addNotify</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<HR>

<A NAME="removeNotify()"><!-- --></A><H3>
removeNotify</H3>
<PRE>
public void <B>removeNotify</B>()</PRE>
<DL>
<DD>Overrides <code>JComponent.removeNotify</code> to unregister this
 menu bar with the current <CODE>KeyboardManager</CODE>.<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../javax/swing/JComponent.html#removeNotify()">removeNotify</A> in class <A HREF="../../javax/swing/JComponent.html">JComponent</A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/JMenuBar.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../javax/swing/JMenu.WinListener.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../javax/swing/JMenuBar.AccessibleJMenuBar.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="JMenuBar.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.JComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.<br>Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>
