# Table header bug

**URL:** <https://forum.inductiveautomation.com/t/table-header-bug/56783>\
**Category:** Ignition Early Access\
**Tags:** vision, ignition81\
**Created:** [March 3, 2022, 2:18pm UTC](https://forum.inductiveautomation.com/t/table-header-bug/56783 "2022-03-03T14:18:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gdube/32/41701_2.png) [@gdube](https://forum.inductiveautomation.com/u/gdube)\
**Post date:** [March 3, 2022, 2:18pm UTC](https://forum.inductiveautomation.com/t/table-header-bug/56783/1 "2022-03-03T14:18:45Z")

</div>

Hi guys,  
I encountered a weird bug in which a table within a template, placed in a container that’s not immediately visible (its visible property is bound to tabStrip.selectedTab) will have its headers with no margins:

![1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/1/21f5b76bd7652fec91cfe3c1f1d7e11a35c0fc5f.png)

If I mouse hover, then the margins appear:  
 ![2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/6/76f8e59778480fcb9f3b580fe6087f4e05c26eb2.png)

Steps to reproduce using the exported templates below:

1. Preview Mode: click on first tab ‘Container 1’.
2. Save project (it will exit preview mode).
3. Preview Mode: click on second tab ‘Container 2’, and don’t put your mouse over the table.
  - The table headers won’t have margins.

4. Preview Mode: put your mouse over the table.
  - The margins will appear.

[Bug-export.zip](https://forum.inductiveautomation.com/uploads/short-url/7teFDA2SlIFUsQptI63JvbzVJWu.zip) (10.4 KB)

My current workaround is to run the following script when Container2 (and therefore the table) becomes visible:

```auto
from javax.swing import SwingUtilities
jtable = x.getTable()
tableHeader = jtable.getTableHeader()
SwingUtilities.updateComponentTreeUI(tableHeader)

```
