# Tag Browse Tree : Colors and Transparency

**URL:** <https://forum.inductiveautomation.com/t/tag-browse-tree-colors-and-transparency/10308>\
**Category:** Ignition\
**Created:** [August 5, 2015, 3:24pm UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-colors-and-transparency/10308 "2015-08-05T15:24:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [August 5, 2015, 3:24pm UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-colors-and-transparency/10308/1 "2015-08-05T15:24:37Z")

</div>

Hello,

I would like to change the transparency of a Tag Browse Tree component. I looked around the DefaultTreeCellRenderer. It kind of works but there is something I must not do correctly as the background become “crazy” as soon as i use the Tag Browse Tree (in preview mode).

Here is the code I use :

```auto
from java.awt import Color
from javax.swing.tree import DefaultTreeCellRenderer

cellRenderer = DefaultTreeCellRenderer()

btr = event.source.parent.getComponent('Tag Browse Tree')

transparent = Color(0,0,0,0)
cellRenderer.setBackground(transparent)
cellRenderer.setBackgroundNonSelectionColor(transparent)
cellRenderer.setBackgroundSelectionColor(transparent)

btr.viewport.view.background = transparent
btr.viewport.view.setCellRenderer(cellRenderer)
btr.setBackground(transparent)
```

Window Initialisation:  
 ![](http://www.heberger-image.fr/data/images/97187_MIOS_TagBrowseTree_Before.png)

After launching the script:

After Using the scrollbars:

After unselecting element or after window focus loss (desired appearance):

Is it possible to define the background color without having the color glitches shown in the screenshots ?  
   
Note: Using scrollbars will bring back the weird background on the component, even if it has préviously shown the correct (and desired) background before.

Note: I’ve seen those stange color behaviors when trying to change the Alarme Status component colors as well.

I can provide logs, exports, code, if needed.

Regards.

---

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [August 20, 2015, 2:58pm UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-colors-and-transparency/10308/2 "2015-08-20T14:58:53Z")

</div>

It appears that the images of my previous post have not been saved.

They are now uploaded as attached files.  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e0ea841b3085341d7f4ab666ab0ef4eecbfe0486.png)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f18e84b87d8c9c707febd8e60ba1e9bba8af0887.png)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/c91ac731f1693474b68195a6000e9e2fb9fc1415.png)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d70c63011017d12643ea2fe2ef1fb597595b6be5.png)

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [August 21, 2015, 2:10pm UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-colors-and-transparency/10308/3 "2015-08-21T14:10:18Z")

</div>

I was able to replicate this in the latest version of Ignition. I’ve filed a bug ticket.

Unfortunately, Java’s handling of transparancy is a bit non-intuitive, and we weren’t doing it right on components. We cleaned up a lot of them in various versions of 7.7, but it looks like we missed this one. 😊

---

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [August 24, 2015, 2:51pm UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-colors-and-transparency/10308/4 "2015-08-24T14:51:28Z")

</div>

Thank you for the reply.

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 14, 2022, 8:09am UTC](https://forum.inductiveautomation.com/t/tag-browse-tree-colors-and-transparency/10308/5 "2022-12-14T08:09:39Z")

</div>

I guess it's still there in the Ignition 8.1.19 version. I'm also getting a similar kinds of it.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/f/7f36368ee45ecad41997ccd92c4876f87827dad6.png)
