Hiw can i add icon in menu ?

Hi

I can add icons and texts in menuitem

menuItem =new JMenuItem("Both text and icon",new ImageIcon("images/middle.gif"));

But how is it possible to to add icons in menu itself...

JMenu new1 =new JMenu("New",new ImageIcon("images/middle.gif"));

it is showing an error how can i solve this...

[562 byte] By [Reona] at [2007-11-27 1:07:23]
# 1
JMenu(String s, ImageIcon s) does not exist as a constructoryou have to create your jmenu with a single string, and then call the "setIcon" method on the jmenu
calvino_inda at 2007-7-11 23:42:37 > top of Java-index,Java Essentials,Java Programming...
# 2
Would you please make it clear.. Bcoz string s is a text you are calling it with imageicon s...what do u mean by that i didnt understand...
Reona at 2007-7-11 23:42:37 > top of Java-index,Java Essentials,Java Programming...