Menu item object: –

Menu item object: – Java provide to create new menu and add menu item inside the menu. Adding menu item is not so hard but it can be used only when MenuItem class added in Applet programming. Each menu item we add to an AWT menu is actually an object of the MenuItem class.

To add a menu item to a menu, we just create a new MenuItem object, passing the MenuItem constructor the name of the new item adds them using the menu objects to add the new item to a menu.


Comments are closed.

Create a website or blog at

Up ↑

%d bloggers like this: