AWT PopupMenu – Show on Right-Click

Here, we have a PopupMenu with 4 MenuItems and one separator. We can also notice that the Menu is not attached to a Menubar, and it is displayed in the AWT Frame Window. In this example, we will display the Menu when you right click the mouse inside the AWT Frame.