|
From: Peter De B. <pet...@gm...> - 2007-10-07 20:18:31
|
The CommandButtonIconInfo.configure method sets the icon properties (icon, selectedIcon, disabledIcon, pressedIcon and rolloverIcon) on a command button. But there's different behaviour depending on the effective type of the button: On a JMenu, all icons are set to null, on a JMenuItem, the icon and disabledIcon are set, and on all other types, all icons are set. This means that when creating a popup menu with a sub menu, the sub menu will never have an icon. Wouldn't it be better to just set all the icons on all types of buttons? That way, the icons are completely configured using the images.properties. What do you think? Peter |