# Vision component component scripting

**URL:** <https://forum.inductiveautomation.com/t/vision-component-component-scripting/99824>\
**Category:** Module Development\
**Tags:** ignition81, sdk, vision\
**Created:** [December 13, 2024, 8:47pm UTC](https://forum.inductiveautomation.com/t/vision-component-component-scripting/99824 "2024-12-13T20:47:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raees](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@Raees](https://forum.inductiveautomation.com/u/Raees)\
**Post date:** [December 13, 2024, 8:47pm UTC](https://forum.inductiveautomation.com/t/vision-component-component-scripting/99824/1 "2024-12-13T20:47:35Z")

</div>

Hi new to this,

So am working on a vision component

Once you call 'super.initEventSets()' in the beaninfo this sets up the mouse, mousemotion and propertychange within the event Handler. However what do i need to do from the component side, is there anything else i should add to be able to use this. am trying to use the component scripting after a mouseClicked but it wont run.  
I did use the 'addEventSet(....)' line to add the actionlistener and i noticed i call the 'fireActionPerformed()' from my component to trigger the component scripting within actionPerformed in the designer, is that the same case for mouse and mouseMotionlisteners?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 13, 2024, 11:06pm UTC](https://forum.inductiveautomation.com/t/vision-component-component-scripting/99824/2 "2024-12-13T23:06:01Z")

</div>

You shouldn't have to do anything in your component implementation or your bean info to handle basic swing event sets; the default CommonBeanInfo will automatically add the event sets and the global interaction controller will set up the appropriate event listeners.
