@@ -0,0 +1,1218 @@
+import java.awt.*;%0Aclass AWTMenu extends Frame%0A%7B%0AMenuBar mbar;%0AMenu menu,submenu;%0AMenuItem m1,m2,m3,m4,m5;%0A%0A    public AWTMenu()%0A    %7B%0A   %0A    // Set frame properties%0A    setTitle(%22AWT Menu%22); // Set the title%0A    setSize(400,400); // Set size to the frame%0A    setLayout(new FlowLayout()); // Set the layout%0A    setVisible(true); // Make the frame visible%0A    setLocationRelativeTo(null);  // Center the frame%0A%0A    // Create the menu bar%0A    mbar=new MenuBar();%0A   %0A    // Create the menu%0A    menu=new Menu(%22Menu%22);%0A   %0A    // Create the submenu%0A    submenu=new Menu(%22Sub Menu%22);%0A   %0A    // Create MenuItems%0A    m1=new MenuItem(%22Menu Item 1%22);%0A    m2=new MenuItem(%22Menu Item 2%22);%0A    m3=new MenuItem(%22Menu Item 3%22);%0A   %0A    m4=new MenuItem(%22Menu Item 4%22);%0A    m5=new MenuItem(%22Menu Item 5%22);%0A   %0A    // Attach menu items to menu%0A    menu.add(m1);%0A    menu.add(m2);%0A    menu.add(m3);%0A   %0A    // Attach menu items to submenu%0A    submenu.add(m4);%0A    submenu.add(m5);%0A   %0A    // Attach submenu to menu%0A    menu.add(submenu);%0A   %0A    // Attach menu to menu bar%0A    mbar.add(menu);%0A   %0A    // Set menu bar to the frame%0A    setMenuBar(mbar);%0A    %7D%0A    public static void main(String args%5B%5D)%0A    %7B%0A    new AWTMenu();%0A    %7D%0A%7D%0A

Create AWTMenu.java