# How To Add An Icon On Custom Perspective Module

**URL:** <https://forum.inductiveautomation.com/t/how-to-add-an-icon-on-custom-perspective-module/112289>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [November 20, 2025, 12:32am UTC](https://forum.inductiveautomation.com/t/how-to-add-an-icon-on-custom-perspective-module/112289 "2025-11-20T00:32:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gunawan\_Hadikusumo](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@Gunawan\_Hadikusumo](https://forum.inductiveautomation.com/u/Gunawan_Hadikusumo)\
**Post date:** [November 20, 2025, 12:32am UTC](https://forum.inductiveautomation.com/t/how-to-add-an-icon-on-custom-perspective-module/112289/1 "2025-11-20T00:32:08Z")

</div>

Hi Guys,

I just wondering on how to add icon on my custom perspective icon in the code. Assuming i already have created an icon and ready to used in the project, where to keep that icon inside my code folders.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/9/c921f1b24e3c44f41f673c408d03af90d96cc6a9.png)

---

<div class="post-metadata">

**Author:** ![jake.bierman](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jake.bierman](https://forum.inductiveautomation.com/u/jake.bierman)\
**Post date:** [November 20, 2025, 1:09am UTC](https://forum.inductiveautomation.com/t/how-to-add-an-icon-on-custom-perspective-module/112289/2 "2025-11-20T01:09:15Z")

</div>

Have a look a the ComponentDescriptor where you set the module properties. I got the icon working using the below line with the images stored in the resource folder, I think this was also in the example component from IA

```python
.setName("Image")
.setIcon(new ImageIcon(PerspectiveComponentsModule.class.getResource("/components/image/icons/image.png")))

```

---

<div class="post-metadata">

**Author:** ![Gunawan\_Hadikusumo](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@Gunawan\_Hadikusumo](https://forum.inductiveautomation.com/u/Gunawan_Hadikusumo)\
**Post date:** [November 20, 2025, 1:59am UTC](https://forum.inductiveautomation.com/t/how-to-add-an-icon-on-custom-perspective-module/112289/3 "2025-11-20T01:59:05Z")

</div>

> [@jake.bierman](#):
>
> `.setIcon(new ImageIcon(PerspectiveComponentsModule.class.getResource("/components/image/icons/image.png")))`

Thanks for your response. It works.
