javax.swing
Class JMenuBar

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JMenuBar

public class JMenuBar extends JComponent

Constructor Summary
JMenuBar()
          Creates a new menu bar.
 
Method Summary
 JMenu add(JMenu c)
          Appends the specified menu to the end of the menu bar.
 int getComponentIndex(Component c)
          Returns the index of the specified component.
 JMenu getMenu(int index)
          Returns the menu at the specified position in the menu bar.
 int getMenuCount()
          Returns the number of items in the menu bar.
 boolean isSelected()
          Returns true if the menu bar currently has a component selected.
 void setSelected(Component sel)
          Sets the currently selected component, producing a a change to the selection model.