# Adding popup menus to custom vision component

**URL:** <https://forum.inductiveautomation.com/t/adding-popup-menus-to-custom-vision-component/31112>\
**Category:** Module Development\
**Created:** [January 7, 2020, 3:51pm UTC](https://forum.inductiveautomation.com/t/adding-popup-menus-to-custom-vision-component/31112 "2020-01-07T15:51:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![loay.khartabil](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@loay.khartabil](https://forum.inductiveautomation.com/u/loay.khartabil)\
**Post date:** [January 7, 2020, 3:51pm UTC](https://forum.inductiveautomation.com/t/adding-popup-menus-to-custom-vision-component/31112/1 "2020-01-07T15:51:29Z")

</div>

I am trying to add a popup menu to a vision component (java bean component) but have not able able to do. My questions are:  
(1) is this first possible and if yes how.  
(2) if it is not possible, is there a way to program the component so the ignition scripts to add a menu in the designer are automatically added o the component.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 7, 2020, 3:55pm UTC](https://forum.inductiveautomation.com/t/adding-popup-menus-to-custom-vision-component/31112/2 "2020-01-07T15:55:35Z")

</div>

Yes. You will have to create a mouse listener that constructs and displays the menu with the correct trigger, and you will have to add an instance of this listener to your component. Typically done in the component’s constructor, from what I’ve seen.

---

<div class="post-metadata">

**Author:** ![loay.khartabil](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@loay.khartabil](https://forum.inductiveautomation.com/u/loay.khartabil)\
**Post date:** [January 7, 2020, 4:06pm UTC](https://forum.inductiveautomation.com/t/adding-popup-menus-to-custom-vision-component/31112/3 "2020-01-07T16:06:49Z")

</div>

Thank you, it does work.
