Create jmenu java swing example

-I intend to wite an article about JMenu java swing, but when I found this code, it was very complete and explained quite clearly.
-First we need to add a MenuBar to the JFrame, then the JMenu is added to the MenuBar, then JMenuItems are added to the JMenu.
jmenu-java-swing

-The program also has JPopupmenu (right click).
jmenu-java-swing
-In addition, you need a picture as an icon in the menu, copy the image into the package like this:
jmenu-java-swing
-File name: DemoJMenu.java
jmenu-java-swing
-Continue DemoJMenu.java
jmenu-java-swing
-Continue DemoJMenu.java
jmenu-java-swing
-Continue DemoJMenu.java
jmenu-java-swing
-Read more Custom jtabbedpane in java swing with detail example:

Comments