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