# Multi-line strings in a power table

**URL:** <https://forum.inductiveautomation.com/t/multi-line-strings-in-a-power-table/24690>\
**Category:** Ignition\
**Created:** [May 6, 2019, 2:59pm UTC](https://forum.inductiveautomation.com/t/multi-line-strings-in-a-power-table/24690 "2019-05-06T14:59:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [May 6, 2019, 2:59pm UTC](https://forum.inductiveautomation.com/t/multi-line-strings-in-a-power-table/24690/1 "2019-05-06T14:59:46Z")

</div>

If a string in a database field contains line feed characters, is there any way of displaying this as a multi-line string in a power table?

---

<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:** [May 6, 2019, 7:49pm UTC](https://forum.inductiveautomation.com/t/multi-line-strings-in-a-power-table/24690/2 "2019-05-06T19:49:38Z")

</div>

I’d try overriding the column’s renderer to yield a suitable JTextArea instead of a JLabel. Might need to play with row heights.

---

<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:** [May 7, 2019, 4:41pm UTC](https://forum.inductiveautomation.com/t/multi-line-strings-in-a-power-table/24690/3 "2019-05-07T16:41:09Z")

</div>

If you set the `wrap text` attribute in the column attributes dataset we switch to rendering using a `MultilineTableCellRenderer` which I would expect to display newlines correctly.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [May 7, 2019, 5:13pm UTC](https://forum.inductiveautomation.com/t/multi-line-strings-in-a-power-table/24690/4 "2019-05-07T17:13:12Z")

</div>

Thanks Paul, that does exactly what I wanted.
