# Power Table Mouse Click Events Not working

**URL:** <https://forum.inductiveautomation.com/t/power-table-mouse-click-events-not-working/9247>\
**Category:** Ignition\
**Created:** [October 29, 2014, 11:55am UTC](https://forum.inductiveautomation.com/t/power-table-mouse-click-events-not-working/9247 "2014-10-29T11:55:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmylooo](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@jimmylooo](https://forum.inductiveautomation.com/u/jimmylooo)\
**Post date:** [October 29, 2014, 11:55am UTC](https://forum.inductiveautomation.com/t/power-table-mouse-click-events-not-working/9247/1 "2014-10-29T11:55:54Z")

</div>

On the Power Table, the base Mouse click events are not working.

The new double click function works, but the base mouse events do not. Is this just a bug? I think I can work with the DoubleClick function in this case, but it would be nice to utilize the regular mouse events as well.

Loving the Power Table!

Keep making improvements!

Thanks!

James

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [March 18, 2015, 4:11pm UTC](https://forum.inductiveautomation.com/t/power-table-mouse-click-events-not-working/9247/2 "2015-03-18T16:11:20Z")

</div>

Unfortunately mouse events only work on the border of the Power Table component. Talking to the developers about this issue we are going to remove the mouse event scripts and replace them an extension function that will mimic those event scripts.

I will update this thread when more information is available.

---

<div class="post-metadata">

**Author:** ![mattn](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@mattn](https://forum.inductiveautomation.com/u/mattn)\
**Post date:** [January 15, 2020, 4:52pm UTC](https://forum.inductiveautomation.com/t/power-table-mouse-click-events-not-working/9247/3 "2020-01-15T16:52:26Z")

</div>

It seems like they have never fixed any of the mouse event issues still. Any way we can bump this?

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [January 15, 2020, 5:01pm UTC](https://forum.inductiveautomation.com/t/power-table-mouse-click-events-not-working/9247/4 "2020-01-15T17:01:09Z")

</div>

Did you try the onMouseClick extension function?

---

<div class="post-metadata">

**Author:** ![mattn](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@mattn](https://forum.inductiveautomation.com/u/mattn)\
**Post date:** [January 15, 2020, 5:53pm UTC](https://forum.inductiveautomation.com/t/power-table-mouse-click-events-not-working/9247/5 "2020-01-15T17:53:50Z")

</div>

Yes, those work. Albeit, I had to build my own function to detect whether I was over top of the Power Table instead of being able to use mouseEntered, and mouseExited.

---

<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:** [January 15, 2020, 5:59pm UTC](https://forum.inductiveautomation.com/t/power-table-mouse-click-events-not-working/9247/6 "2020-01-15T17:59:56Z")

</div>

It’s a consequence of the way Java Swing does event handling. Because the individual cells in the power table have to have their own mouse handlers (for things like checkboxes in boolean cells, or text fields in String cells), the table itself cannot ‘consume’ those mouse events (outside of the border, and the almost-never-visible ‘background’ when the number of rows doesn’t fill the height of the table).

---

<div class="post-metadata">

**Author:** ![mattn](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@mattn](https://forum.inductiveautomation.com/u/mattn)\
**Post date:** [January 15, 2020, 6:55pm UTC](https://forum.inductiveautomation.com/t/power-table-mouse-click-events-not-working/9247/7 "2020-01-15T18:55:34Z")

</div>

Okay, now that makes perfect sense. I guess it would be cool if they made some new functions that did some like look if you’re inside the bounding box and place them at the bottom like they did with the click and double click functions.
