You create JMenu and JMenuItem instances as illustrated in the following examples:
JMenu
JMenuItem
new JMenu("File"); new JMenuItem("General");
The strings provide labels for menus and menu items.