This is a Java Program to Create a Menu with Several Menu Items
Problem Description
We have to write a program in Java such that it creates a menu bar with menu items and the the label of the menu item is displayed in the frame.
Expected Input and Output
For creating a menu with several items, we can have the following sets of input and output.
1.To View the Menu:
When the program is being executed,
it is expected that the frame consists of the menu.
2.To Select a Menu Item:
When any menu item is selected from the menu bar,
it is expected that the label of the menu item selected is displayed.