Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
java.awt

Class MenuBar

    • Method Detail

      • addNotify

        public void addNotify()
        Creates the menu bar's peer. The peer allows us to change the appearance of the menu bar without changing any of the menu bar's functionality.
      • removeNotify

        public void removeNotify()
        Removes the menu bar's peer. The peer allows us to change the appearance of the menu bar without changing any of the menu bar's functionality.
        Overrides:
        removeNotify in class MenuComponent
      • getHelpMenu

        public Menu getHelpMenu()
        Gets the help menu on the menu bar.
        Returns:
        the help menu on this menu bar.
      • setHelpMenu

        public void setHelpMenu(Menu m)
        Sets the specified menu to be this menu bar's help menu. If this menu bar has an existing help menu, the old help menu is removed from the menu bar, and replaced with the specified menu.
        Parameters:
        m - the menu to be set as the help menu
      • add

        public Menu add(Menu m)
        Adds the specified menu to the menu bar. If the menu has been part of another menu bar, removes it from that menu bar.
        Parameters:
        m - the menu to be added
        Returns:
        the menu added
        See Also:
        remove(int), remove(java.awt.MenuComponent)
      • remove

        public void remove(int index)
        Removes the menu located at the specified index from this menu bar.
        Parameters:
        index - the position of the menu to be removed.
        See Also:
        add(java.awt.Menu)
      • getMenuCount

        public int getMenuCount()
        Gets the number of menus on the menu bar.
        Returns:
        the number of menus on the menu bar.
        Since:
        JDK1.1
      • countMenus

        @Deprecated
        public int countMenus()
        Deprecated. As of JDK version 1.1, replaced by getMenuCount().
      • getMenu

        public Menu getMenu(int i)
        Gets the specified menu.
        Parameters:
        i - the index position of the menu to be returned.
        Returns:
        the menu at the specified index of this menu bar.
      • shortcuts

        public Enumeration<MenuShortcut> shortcuts()
        Gets an enumeration of all menu shortcuts this menu bar is managing.
        Returns:
        an enumeration of menu shortcuts that this menu bar is managing.
        Since:
        JDK1.1
        See Also:
        MenuShortcut
      • getShortcutMenuItem

        public MenuItem getShortcutMenuItem(MenuShortcut s)
        Gets the instance of MenuItem associated with the specified MenuShortcut object, or null if none of the menu items being managed by this menu bar is associated with the specified menu shortcut.
        Parameters:
        s - the specified menu shortcut.
        Since:
        JDK1.1
        See Also:
        MenuItem, MenuShortcut
      • deleteShortcut

        public void deleteShortcut(MenuShortcut s)
        Deletes the specified menu shortcut.
        Parameters:
        s - the menu shortcut to delete.
        Since:
        JDK1.1
      • getAccessibleContext

        public AccessibleContext getAccessibleContext()
        Gets the AccessibleContext associated with this MenuBar. For menu bars, the AccessibleContext takes the form of an AccessibleAWTMenuBar. A new AccessibleAWTMenuBar instance is created if necessary.
        Specified by:
        getAccessibleContext in interface Accessible
        Overrides:
        getAccessibleContext in class MenuComponent
        Returns:
        an AccessibleAWTMenuBar that serves as the AccessibleContext of this MenuBar
        Since:
        1.3

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-java/awt/menubar.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut