Interface MenuBarPeer in Java

Interface MenuBarPeer in Java
Interface MenuBarPeer in Java

Interface MenuBarPeer in Java:

The MenuBarPeer interface specifies the methods that all implementation of Abstract Window Toolkit menubar must define.

The interface structure of MenuBarPeer is given by:

public interface java.awt.peer.MenuBarPeer extends java.awt.peer.ManuComponentPeer{
//methods
public abstract void addHelpManu(Menu m);
//sets the help menu on the menu bar to be the specified menu
public abstract void addMenu(Menu m);
//adds the specified menu to the menu bar.
public abstract void delMenu(int index);
//remove the menu located at the specified index from the menu bar.
}
 
Interface MenuBarPeer in Java Interface MenuBarPeer in Java Reviewed by Animesh Chatterjee on January 10, 2019 Rating: 5

No comments:

Powered by Blogger.