Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
D
G
I
J
M
R
S
U
A
add(Action)
- Method in class javax.swing.
JMenu
Creates a new menuitem attached to the specified Action object and appends it to the end of this menu.
add(Component)
- Method in class javax.swing.
JMenu
Appends a component to the end of this menu.
add(JMenuItem)
- Method in class javax.swing.
JMenu
Appends a menuitem to the end of this menu.
add(String)
- Method in class javax.swing.
JMenu
Creates a new menuitem with the specified text and appends it to the end of this menu.
addMenuListener(MenuListener)
- Method in class javax.swing.
JMenu
Add a listener for menu events
addSeparator()
- Method in class javax.swing.
JMenu
Append a new separator to the end of the menu.
D
doClick(int)
- Method in class javax.swing.
JMenu
Programatically perform a "click".
G
getAccessibleContext()
- Method in class javax.swing.
JMenu
Get the AccessibleContext associated with this JComponent
getComponent()
- Method in class javax.swing.
JMenu
This method returns the java.awt.Component used to paint this MenuElement.
getDelay()
- Method in class javax.swing.
JMenu
Returns the suggested delay before the menu's PopupMenu is popped up or down.
getItem(int)
- Method in class javax.swing.
JMenu
Returns the JMenuItem at the specified position.
getItemCount()
- Method in class javax.swing.
JMenu
Returns the number of items on the menu, including separators.
getMenuComponent(int)
- Method in class javax.swing.
JMenu
Returns the component at position n
getMenuComponentCount()
- Method in class javax.swing.
JMenu
Returns the number of components on the menu.
getMenuComponents()
- Method in class javax.swing.
JMenu
Returns an array of the menu's subcomponents
getPopupMenu()
- Method in class javax.swing.
JMenu
Returns the popupmenu associated with this menu
getSubElements()
- Method in class javax.swing.
JMenu
Returns an array containing the sub-menu components for this menu component
getUIClassID()
- Method in class javax.swing.
JMenu
Returns the name of the L&F class that renders this component.
I
insert(Action, int)
- Method in class javax.swing.
JMenu
Insert a new menuitem attached to the specified Action object at a given position.
insert(JMenuItem, int)
- Method in class javax.swing.
JMenu
Insert the specified JMenuitem at a given position.
insert(String, int)
- Method in class javax.swing.
JMenu
Insert a new menuitem with the specified text at a given position.
insertSeparator(int)
- Method in class javax.swing.
JMenu
Inserts a separator at the specified position.
isMenuComponent(Component)
- Method in class javax.swing.
JMenu
Returns true if the specified component exists in the submenu hierarchy.
isPopupMenuVisible()
- Method in class javax.swing.
JMenu
Returns true if the menu's popup window is visible.
isSelected()
- Method in class javax.swing.
JMenu
Returns true if the menu is currently selected (popped up).
isTearOff()
- Method in class javax.swing.
JMenu
Returns true if the menu can be torn off.
isTopLevelMenu()
- Method in class javax.swing.
JMenu
Returns true if the menu is a 'top-level menu', that is, if it is the direct child of a menubar.
J
JMenu
- class javax.swing.
JMenu
.
An implementation of a menu -- a popup window containing
JMenuItem
s that is displayed when the user selects an item on the
JMenuBar
.
JMenu()
- Constructor for class javax.swing.
JMenu
Creates a new JMenu with no text.
JMenu(String)
- Constructor for class javax.swing.
JMenu
Creates a new JMenu with the supplied string as its text
JMenu(String, boolean)
- Constructor for class javax.swing.
JMenu
Creates a new JMenu with the supplied string as its text and specified as a tear-off menu or not.
M
menuSelectionChanged(boolean)
- Method in class javax.swing.
JMenu
Messaged when the menubar selection changes to activate or deactivate this menu.
R
remove(Component)
- Method in class javax.swing.
JMenu
Removes the Component from this menu.
remove(int)
- Method in class javax.swing.
JMenu
Removes the menu item at the specified index from this menu.
remove(JMenuItem)
- Method in class javax.swing.
JMenu
Removes the specified menu item from this menu.
removeAll()
- Method in class javax.swing.
JMenu
Remove all menu items from this menu.
removeMenuListener(MenuListener)
- Method in class javax.swing.
JMenu
Remove a listener for menu events
S
setAccelerator(KeyStroke)
- Method in class javax.swing.
JMenu
setAccelerator() is not defined for JMenu.
setDelay(int)
- Method in class javax.swing.
JMenu
Sets the suggested delay before the menu's PopupMenu is popped up or down.
setMenuLocation(int, int)
- Method in class javax.swing.
JMenu
Set the location of the popup component
setModel(ButtonModel)
- Method in class javax.swing.
JMenu
Set the data model for the "menu button" -- the label that the user clicks to open or close the menu.
setPopupMenuVisible(boolean)
- Method in class javax.swing.
JMenu
Set the visibility of the Menu's popup portion.
setSelected(boolean)
- Method in class javax.swing.
JMenu
Sets the selection status of the menu.
U
updateUI()
- Method in class javax.swing.
JMenu
Notification from the UIFactory that the L&F has changed.
A
D
G
I
J
M
R
S
U
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES