Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

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.
}


Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

LEAVE A REPLY

Please enter your comment!
Please enter your name here