Interface MenuPeer in java

Interface MenuPeer in java
Interface MenuPeer in java

Interface MenuPeer in java:

The MenuPeer interface specifies the specifies the methods that all implementation of Abstract Window Toolkit menu item must define.

The structure of MenuPeer interface is given as:


public interface java.awt.peer.MenuPeer extends
                 java.awt.peer.ManuItemPeer{

//methods
public abstract void addItem(MenuItem item);
//adds the specified menu item to this menu.
public abstract void addSeparator();
//adds a separator line to this menu.
public abstract void delItem(int index);
//deletes the item at the specified index from the menu.
}
 
Interface MenuPeer in java Interface MenuPeer in java Reviewed by Animesh Chatterjee on January 10, 2019 Rating: 5

No comments:

Powered by Blogger.