Print at Dec 16, 2025, 9:18:35 AM View all posts in this thread on one page
Posted by jonyeung at May 3, 2018, 2:58:51 PM
Icons for Toolbar Dropdown Items
Hi

I would like to add icons beside each item in my plugin dropdown menu.

Does anyone know how to do this?

Please see the attached image for what I am referring to.
https://imgur.com/JNVKkIa

Posted by Puybaret at May 4, 2018, 3:58:46 PM
Re: Icons for Toolbar Dropdown Items
You should specify the icon you want with a SMALL_ICON key in the .properties accompanying your plugin. See pluginAction class and ExportToSH3F plug-in for an example.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by jonyeung at May 7, 2018, 4:51:56 PM
Re: Icons for Toolbar Dropdown Items
Is it possible to use the putPropertyValue method to set the SMALL_ICON? I tried using a .properties file but despite giving it the correct filepath, I keep getting a MissingResourceException.