Menu attached to button

I have several buttons with images in a toolbar. I want one of them to work like a menubar so that different menu items appear when the button is clicked.A JMenu can't have an Image attached so I need another way of doing this.Any ideas?
[259 byte] By [alfaa] at [2007-11-27 0:49:08]
# 1
A JMenu can't have an Image attachedI've not actually tried it, but the fact that a JMenu is an AbstractButton, which renders icons and has a setIcon() method, would rather suggest that statement to be false.
itchyscratchya at 2007-7-11 23:18:31 > top of Java-index,Desktop,Core GUI APIs...
# 2
try the public void setIcon(Icon defaultIcon) of the JMenu. it will work.
Aniruddha-Herea at 2007-7-11 23:18:31 > top of Java-index,Desktop,Core GUI APIs...