JMenu, icon and submenu rendering

i'm having a problem setting an icon on a submenu.

when i do so, the right pointing triangle is not rendered.

1: "sendTo" item correctly renders arrow.

File

SendTo |>

2: "SendTo" item displays icon, but no arrow

File

* SendTo

anyone else have this problem? i originally thought the size might be the problem but i tried giving it lots of room and no luck.

i notice the Basic?UI code has a parameter for rendering the arrowIcon but i don't see how setting an icon would affect it. maybe something in the XP?UI code.

code example:

Jmenu menu =new JMenu();

JMenu submenu =new JMenu();

// add some menu items to submenu etc...

submenu.setIcon(icon);

[846 byte] By [trixielucya] at [2007-11-26 22:17:01]
# 1
works OK for me, java 1.5.0_05 winxp pro
Michael_Dunna at 2007-7-10 11:10:42 > top of Java-index,Desktop,Core GUI APIs...
# 2
[url http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html]How to Use Menus[/url] has a working example.
camickra at 2007-7-10 11:10:42 > top of Java-index,Desktop,Core GUI APIs...