# Power Table Header Wrap and Column Freeze Pane

**URL:** <https://forum.inductiveautomation.com/t/power-table-header-wrap-and-column-freeze-pane/20858>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [November 14, 2018, 4:53pm UTC](https://forum.inductiveautomation.com/t/power-table-header-wrap-and-column-freeze-pane/20858 "2018-11-14T16:53:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlopez](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jlopez](https://forum.inductiveautomation.com/u/jlopez)\
**Post date:** [November 14, 2018, 4:53pm UTC](https://forum.inductiveautomation.com/t/power-table-header-wrap-and-column-freeze-pane/20858/1 "2018-11-14T16:53:12Z")

</div>

Is there a way, through Java, to wrap text in the headers of a power table? What about freezing column(s) when using the horizontal scroll bar on a wide power table (analogous to Excel Freeze Panes). I am using 7.9.4.

Thanks,

Josh

---

<div class="post-metadata">

**Author:** ![jlopez](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jlopez](https://forum.inductiveautomation.com/u/jlopez)\
**Post date:** [November 14, 2018, 4:56pm UTC](https://forum.inductiveautomation.com/t/power-table-header-wrap-and-column-freeze-pane/20858/2 "2018-11-14T16:56:30Z")

</div>

Well I found the way to wrap text using HTML in this link:  
[http://forum.inductiveautomation.com/t/word-wrapping-column-headers-of-the-table-object/127](http://forum.inductiveautomation.com/t/word-wrapping-column-headers-of-the-table-object/127)

Any thoughts on freezing columns, forum search came up blank

---

<div class="post-metadata">

**Author:** ![jlopez](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jlopez](https://forum.inductiveautomation.com/u/jlopez)\
**Post date:** [January 22, 2019, 2:59pm UTC](https://forum.inductiveautomation.com/t/power-table-header-wrap-and-column-freeze-pane/20858/3 "2019-01-22T14:59:56Z")

</div>

Has anyone been able to incorporate Java tools to get the freeze panes to work?

---

<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 22, 2019, 3:58pm UTC](https://forum.inductiveautomation.com/t/power-table-header-wrap-and-column-freeze-pane/20858/4 "2019-01-22T15:58:25Z")

</div>

There’s no simple solution. To freeze a column or columns, they have to be plucked out of the table model and placed in a separate JTable’s model, and that JTable’s body set as the scrollpane’s row header.

---

<div class="post-metadata">

**Author:** ![jlopez](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jlopez](https://forum.inductiveautomation.com/u/jlopez)\
**Post date:** [January 22, 2019, 4:17pm UTC](https://forum.inductiveautomation.com/t/power-table-header-wrap-and-column-freeze-pane/20858/5 "2019-01-22T16:17:53Z")

</div>

Thanks I tried doing as you described and although I could get the objects through the code, I wasn’t able to set the power table to a new JTable. I will continue working on it.

Where would be the best place to put this code? In a separate button or in one of the power tables extension functions or event handlers? I am thinking a separate button.

---

<div class="post-metadata">

**Author:** ![eklockziem](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/eklockziem/32/12175_2.png) [@eklockziem](https://forum.inductiveautomation.com/u/eklockziem)\
**Post date:** [November 19, 2019, 11:21pm UTC](https://forum.inductiveautomation.com/t/power-table-header-wrap-and-column-freeze-pane/20858/6 "2019-11-19T23:21:27Z")

</div>

jlopez,

Were you able to get any further on this? Would like to implement the same sort of functionality.

Thanks!

---

<div class="post-metadata">

**Author:** ![jlopez](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jlopez](https://forum.inductiveautomation.com/u/jlopez)\
**Post date:** [November 20, 2019, 3:49pm UTC](https://forum.inductiveautomation.com/t/power-table-header-wrap-and-column-freeze-pane/20858/7 "2019-11-20T15:49:19Z")

</div>

No I haven’t. I didn’t continue with developing on this as other things took priority in the application. Sorry wish I could be of more help.
