# Putting a button inside a power table column?

**URL:** <https://forum.inductiveautomation.com/t/putting-a-button-inside-a-power-table-column/29801>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [November 8, 2019, 8:20pm UTC](https://forum.inductiveautomation.com/t/putting-a-button-inside-a-power-table-column/29801 "2019-11-08T20:20:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [November 8, 2019, 8:20pm UTC](https://forum.inductiveautomation.com/t/putting-a-button-inside-a-power-table-column/29801/1 "2019-11-08T20:20:24Z")

</div>

I saw a few threads on this

> [@Power table button](http://forum.inductiveautomation.com/t/power-table-button/17933):
>
> I know this has been asked some times now, however can’t make it work properly. I can successfully add buttons to the power table, it is just not performing very well. The power table flashes and is unresponsive. Have been following [this](http://forum.inductiveautomation.com/t/power-table-custom-renderer-with-jbutton/11970) to get startet, but as said without any luck. Is anyone doing this with success? Here’s the code snippet from the configureEditor extension functions (copied directly from the linked thread) if colName == "String Column": from javax.swing import AbstractCel…

and

> [@Power Table custom renderer with JButton](http://forum.inductiveautomation.com/t/power-table-custom-renderer-with-jbutton/11970):
>
> Hello, I am trying to add a button to a column in a power table. I am able to add the button and register an action listener, but the clicking event is never received by the listener. Any suggestions? In the Power Table “configureCell” extension method I have: [code] if colName == “Action”: import java from javax.swing import JButton from javax.swing.table import TableCellRenderer class MyTableCellRenderer(TableCellRenderer): def \_\_init\_\_(self): super(MyTableCellRenderer, self).\_\_in…

but I cannot get either of them to work. Has anyone done this with success? Also, in one of the post it's mentioned about putting some of the information in the table initialize extension function - anyone know how that would work?

---

<div class="post-metadata">

**Author:** ![amansour](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@amansour](https://forum.inductiveautomation.com/u/amansour)\
**Post date:** [November 8, 2019, 9:55pm UTC](https://forum.inductiveautomation.com/t/putting-a-button-inside-a-power-table-column/29801/2 "2019-11-08T21:55:43Z")

</div>

Hey Bkarabinchak,

You can allow any cell to act as a button by adding a script to the ‘onMousePress’ event.  
As mentioned in the second forum post you linked, you should be able to use the ‘onMousePress’ extension function if you only have one button per cell. If you have more than one button per cell and can’t reproduce the solution in that forum post, you can solve it by separating the buttons into multiple cells.

Anthony
