In the above picture, we can see a Frame Window is housing the Menubar. The same way a dialog also can show a Menubar. A Menubar can hold one or more menus. Here, the picture shows three menus named File, Edit, and Insert. Our Menubar can show only the Menu name in it. But when the user clicks it, it opens the pop-up Menu which contains one or more Menu Items. When the user clicks a menu item, the MenuItem will produce the ActionEvent which can be handled using the ActionListener.