Results for MenuItemPeer in Java

Interface MenuItemPeer in Java

January 10, 2019
MenuItemPeer in Java
MenuItemPeer in Java

MenuItemPeer in Java:

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

The structure of interface MenuItemPeer is given as:


public interface java.awt.peer.MenuItemPeer extends 
                 java.awt.peer.ManuComponentPeer{
//methods:
public abstract void disable();
//disables this menu item.It can no longer be selected by users.
public abstract void enable();
//enables this menu ite,.It can be selected by users.
public abstract void setLabel(String label);
//changes the menu item's label to be the specified String.
}
 

Interface MenuItemPeer in Java Interface MenuItemPeer in Java Reviewed by Animesh Chatterjee on January 10, 2019 Rating: 5
Powered by Blogger.