Let's start with the createLookAndFeel() method. This will create the first submenu shown in figure 1. There are three items on this menu, Metal, Motif, and Windows. We will create this menu by doing the following:
a) Create a new JMenu with the name Look and Feel.
b) Create a new JMenuItem with the name Metal.
c) Add an action listener to the menu item (see the createNotes() method
to see how this is done).
d) Add the menu item to the menu.
e) Repeat steps b through d for each of the other two menu items.