cancel
Showing results for 
Search instead for 
Did you mean: 

setting icon for custom action

former_member331989
Participant
0 Kudos

Hi,

How can i set an icon for custom action for MII version 12.2.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

suhas_nagaraju
Participant
0 Kudos

Yes png file will do. Assuming you have given the full path, not sure why the icon is not getting displayed. But the procedure remains same.

Thanks,

Suhas

Edited by: Suhas Nagaraju on Jan 16, 2012 8:15 AM

Former Member
0 Kudos

The black square usually indicates that MII can't find or read the icon.

1. Check the file. I use 32x32 PNGs with transparent background (24bit, 16 million colors).

2. The file has to be in a java package. Check the path. It has to be like:

/com/acme/packagename/IconFileName.png

Regards,

Martin

Answers (1)

Answers (1)

suhas_nagaraju
Participant
0 Kudos

Hi Cemil,

While defining your action using the BLS SDK you would have used something like this:

@Action(name = "Action Name"). Just define one more parameter like below.

@Action(name = "Action name", icon = "Icon Path")

Just define the path where the icon is present.

Hope this helps.

Thanks,

Suhas

former_member331989
Participant
0 Kudos

Hi,

it can not find icon path.

It shows dark square as icon.

which extension must i use? I used .png extension for icon file.

Thanks.