AWT PopupMenu Class
Introduction PopupMenu class represents a menu which can be dynamically popped up at a specified position within a component. Class declaration Following is the declaration for java.awt.PopupMenu class: public class CheckboxMenuItem extends…