public class JMenuBar extends Container
_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
JMenuBar()
Create a new menu bar
|
| Modifier and Type | Method and Description |
|---|---|
JMenu |
add(JMenu menu_)
Appends the specified menu to the end of the JMenuBar.
|
void |
debug(int level_)
Output a text description of the menubar.
|
void |
draw()
Draw this menubar.
|
int |
getHeight() |
JMenu |
getMenu(int index_)
Returns the menu at the specified index.
|
JMenu |
getMenu(java.lang.String text_)
Returns the menu that has the specified text label.
|
int |
getMenuCount()
Returns the number of menus in the menubar.
|
Dimension |
getSize() |
int |
getWidth() |
Dimension |
minimumSize() |
void |
processKeyEvent(KeyEvent ke_)
Processes key events occurring on this object by dispatching them
to any registered KeyListener objects.
|
java.lang.String |
toString() |
add, add, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getInsets, invalidate, isFocusTraversable, isValid, nextFocus, previousFocus, remove, requestFocus, setBackground, setBounds, setBounds, setBounds, setFocus, setForeground, setHeight, setLayout, setSize, setSize, setWidth, validateaddFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, isDisplayed, isEnabled, isRecursivelyVisible, isTotallyObscured, isVisible, processEvent, processFocusEvent, processMouseEvent, repaint, requestSync, setEnabled, setLocation, setLocation, setName, setParent, setVisible, show, validateCursesColorpublic JMenu add(JMenu menu_)
menu_ - the menu to be added.public int getMenuCount()
public JMenu getMenu(int index_)
public JMenu getMenu(java.lang.String text_)
public void processKeyEvent(KeyEvent ke_)
processKeyEvent in class Containerpublic Dimension minimumSize()
minimumSize in class Containerpublic void debug(int level_)
public java.lang.String toString()
toString in class java.lang.Object