java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JMenuItem
javax.swing.JMenu
- All Implemented Interfaces:
- ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants
- See Also:
- Top Examples, Source Code,
XMLEncoder
,
JSeparator
,
JMenuBar
,
JPopupMenu
public Component add(Component c)
- See Also:
JComponent.revalidate()
, Container.validate()
, Container.addImpl(java.awt.Component, java.lang.Object, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Component add(Component c,
int index)
- See Also:
remove(javax.swing.JMenuItem)
, Container
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenuItem add(String s)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenuItem add(Action a)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenuItem add(JMenuItem menuItem)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void addMenuListener(MenuListener l)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void addSeparator()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void applyComponentOrientation(ComponentOrientation o)
- See Also:
Component.getComponentOrientation()
, Component.setComponentOrientation(java.awt.ComponentOrientation)
, NullPointerException, Container, getMenuComponents
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void configurePropertiesFromAction(Action a)
- See Also:
AbstractButton.setAction(javax.swing.Action)
, JMenuItem
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected PropertyChangeListener createActionChangeListener(JMenuItem b)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected JMenuItem createActionComponent(Action a)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected JMenu.WinListener createWinListener(JPopupMenu p)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void doClick(int pressTime)
- See Also:
- AbstractButton
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void fireMenuCanceled()
- See Also:
EventListenerList
, Error
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void fireMenuDeselected()
- See Also:
EventListenerList
, Error
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void fireMenuSelected()
- See Also:
EventListenerList
, Error
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public AccessibleContext getAccessibleContext()
- See Also:
- JMenuItem, Accessible
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Component getComponent()
- See Also:
- JMenuItem, MenuElement
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getDelay()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenuItem getItem(int pos)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getItemCount()
- See Also:
getMenuComponentCount()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Component getMenuComponent(int n)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getMenuComponentCount()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Component[] getMenuComponents()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public MenuListener[] getMenuListeners()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JPopupMenu getPopupMenu()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Point getPopupMenuOrigin()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public MenuElement[] getSubElements()
- See Also:
- JMenuItem
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getUIClassID()
- See Also:
UIDefaults.getUI(javax.swing.JComponent)
, JMenuItem
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void insert(String s,
int pos)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenuItem insert(Action a,
int pos)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenuItem insert(JMenuItem mi,
int pos)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void insertSeparator(int index)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isMenuComponent(Component c)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isPopupMenuVisible()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isSelected()
- See Also:
- AbstractButton
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isTearOff()
- See Also:
- Error
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isTopLevelMenu()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenu()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenu(String s)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenu(String s,
boolean b)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JMenu(Action a)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void menuSelectionChanged(boolean isIncluded)
- See Also:
MenuSelectionManager.setSelectedPath(MenuElement[])
, JMenuItem, MenuElement
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected String paramString()
- See Also:
- JMenuItem
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected JMenu.WinListener popupListener
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void processKeyEvent(KeyEvent evt)
- See Also:
Component.isShowing()
, Component.enableEvents(long)
, Component.addKeyListener(java.awt.event.KeyListener)
, Component.dispatchEvent(java.awt.AWTEvent)
, Component.processEvent(java.awt.AWTEvent)
, DefaultKeyboardFocusManager
, KeyboardFocusManager
, KeyListener
, JComponent
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void remove(int pos)
- See Also:
Container.add(java.awt.Component)
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void remove(Component c)
- See Also:
Container.remove(int)
, Container.add(java.awt.Component)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void remove(JMenuItem item)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeAll()
- See Also:
Container.remove(int)
, Container.add(java.awt.Component)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeMenuListener(MenuListener l)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setAccelerator(KeyStroke keyStroke)
- See Also:
- Error, JMenuItem
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1090]Specify accelerator for a JButton
By Anonymous on 2004/11/03 04:15:44 Rate
signin=new JButton ( ) ;
signin.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_I, ActionEvent.CTRL_MASK ) ) ;
[1091]_
By venkat_namburu2003 { at } yahoo { dot } com on 2004/11/03 04:17:03 Rate
signin.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_I, ActionEvent.CTRL_MASK ) ) ;
public void setComponentOrientation(ComponentOrientation o)
- See Also:
- Component,
applyComponentOrientation
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setDelay(int d)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setMenuLocation(int x,
int y)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setModel(ButtonModel newModel)
- See Also:
AbstractButton.getModel()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setPopupMenuVisible(boolean b)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setSelected(boolean b)
- See Also:
- AbstractButton
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void updateUI()
- See Also:
- JMenuItem
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples