Assuming you want this image on the menu, why not something like that?
BufferedImage image = ImageIO.read(url); yourJMenu.setHorizontalTextPosition(SwingConstants.CENTER); yourJMenu.setVerticalTextPosition(SwingConstants.BOTTOM); yourJMenu.setIcon(new ImageIcon(image));
EDIT: It seems you are asking to start from scratch.
Before reading this answer, refer to How to use the menu .
EDIT 2 : SSCCE ,
import java.awt.image.BufferedImage; import java.net.URL; import javax.imageio.ImageIO; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.SwingConstants; public class MenuTest { public static void main(String[] argv) throws Exception {
Resource courtesy: http://pscode.org/media/
source share