The Action
s API provides two icon keys. SMALL_ICON
and LARGE_ICON_KEY
From the JavaDocs
The JMenuItem subclasses only use SMALL_ICON. All other buttons will use LARGE_ICON_KEY; if the value is null they use SMALL_ICON.
This would suggest that you should use the SMALL_ICON
key for your actions to allow JMenuItems
to display the small icon.