# Configcell Power Table cell border

**URL:** <https://forum.inductiveautomation.com/t/configcell-power-table-cell-border/90405>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [May 15, 2024, 7:56am UTC](https://forum.inductiveautomation.com/t/configcell-power-table-cell-border/90405 "2024-05-15T07:56:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TechEnlive](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@TechEnlive](https://forum.inductiveautomation.com/u/TechEnlive)\
**Post date:** [May 15, 2024, 7:56am UTC](https://forum.inductiveautomation.com/t/configcell-power-table-cell-border/90405/1 "2024-05-15T07:56:00Z")

</div>

Hi,  
When try to add border it change the whole backgroud color as border color white.  
any idea whats wrong with my code.

```python
return {"background":dbcolor2,'font': dfont2,'border':BorderFactory.createMatteBorder(0,0,0,1, system.gui.color(255,0,0))}

```

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [May 15, 2024, 8:09am UTC](https://forum.inductiveautomation.com/t/configcell-power-table-cell-border/90405/2 "2024-05-15T08:09:59Z")

</div>

> [@TechEnlive](#):
>
> `createMatteBorder(0,0,0,1`

This would only apply a border on the vertical lines.

Is this line of code present in your extension function?

```python
from javax.swing import BorderFactory

```

Are the dbcolor2 and dfont2 defined. I can't see these things from the line of code you've provided.

Check the diagnostic console and see if there are any errors. This will likely point you in the right direction.

---

<div class="post-metadata">

**Author:** ![TechEnlive](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@TechEnlive](https://forum.inductiveautomation.com/u/TechEnlive)\
**Post date:** [May 15, 2024, 8:12am UTC](https://forum.inductiveautomation.com/t/configcell-power-table-cell-border/90405/3 "2024-05-15T08:12:46Z")

</div>

> [@justinedwards.jle](#):
>
> `from javax.swing import BorderFactory`

Thanks alot. from javax.swing import BorderFactory was missing in my code.
