# Power Table - Remove the outside component border

**URL:** <https://forum.inductiveautomation.com/t/power-table-remove-the-outside-component-border/43260>\
**Category:** Ignition\
**Tags:** vision, scripting, ignition80\
**Created:** [February 10, 2021, 8:28pm UTC](https://forum.inductiveautomation.com/t/power-table-remove-the-outside-component-border/43260 "2021-02-10T20:28:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardo.ortolani](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@ricardo.ortolani](https://forum.inductiveautomation.com/u/ricardo.ortolani)\
**Post date:** [February 10, 2021, 8:28pm UTC](https://forum.inductiveautomation.com/t/power-table-remove-the-outside-component-border/43260/1 "2021-02-10T20:28:38Z")

</div>

I am trying to remove or set the color of the Power Table component border, I try the following code on the component scripting [initialize]:

```auto
	from javax.swing import BorderFactory
	myBorder = BorderFactory.createLineBorder(system.gui.color(67,60,69))
	tbl = self.getTable()
	#tbl.border = None # try this, didn't work
	tbl.tableHeader.background = system.gui.color(67,60,69)
	tbl.setBorder(myBorder)
	self.viewport.background = system.gui.color(67,60,69)

```

that changes the color inside the table, but not the border outside the component.  
 ![tempsnip](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/111ee1c165d6b9c5330876c66aadad4da7557ec8.png)  
thanks

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [February 10, 2021, 8:40pm UTC](https://forum.inductiveautomation.com/t/power-table-remove-the-outside-component-border/43260/2 "2021-02-10T20:40:32Z")

</div>

`self.border = None` is what you want!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/8/18c894812880aa56c96392ee8de9ae20c0c20c04.png)

---

<div class="post-metadata">

**Author:** ![ricardo.ortolani](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@ricardo.ortolani](https://forum.inductiveautomation.com/u/ricardo.ortolani)\
**Post date:** [February 10, 2021, 9:18pm UTC](https://forum.inductiveautomation.com/t/power-table-remove-the-outside-component-border/43260/3 "2021-02-10T21:18:51Z")

</div>

Hello Matthew,  
thanks for the update, this works

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [February 10, 2021, 9:20pm UTC](https://forum.inductiveautomation.com/t/power-table-remove-the-outside-component-border/43260/4 "2021-02-10T21:20:05Z")

</div>

Happy to hear!
