# How to Highlight selected TabbedPanel in URCap?

**URL:** <https://forum.universal-robots.com/t/how-to-highlight-selected-tabbedpanel-in-urcap/16253>\
**Category:** Java\
**Created:** [September 2, 2021, 10:42am UTC](https://forum.universal-robots.com/t/how-to-highlight-selected-tabbedpanel-in-urcap/16253 "2021-09-02T10:42:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oe1](https://avatars.discourse-cdn.com/v4/letter/o/50afbb/32.png) [@oe1](https://forum.universal-robots.com/u/oe1)\
**Post date:** [September 2, 2021, 10:42am UTC](https://forum.universal-robots.com/t/how-to-highlight-selected-tabbedpanel-in-urcap/16253/1 "2021-09-02T10:42:50Z")

</div>

Hi!

I’ve managed to add 5 different panels for my JTabbedPane in URCap and the problem is that when I select a pane, it doesn’t get highlighted the panes shift but I’m missing some form of confirmation. I’ve tried to use \*\*UIManager.put(“TabbedPane.selected”, Color.gray); But this only changes the color for all 5 panels to gray.

Hope someone can help!  
//Oliver

---

<div class="post-metadata">

**Author:** ![anon50781943](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon50781943](https://forum.universal-robots.com/u/anon50781943)\
**Post date:** [November 19, 2021, 10:52am UTC](https://forum.universal-robots.com/t/how-to-highlight-selected-tabbedpanel-in-urcap/16253/2 "2021-11-19T10:52:03Z")

</div>

It’s strange because it’s working for me…

But I cannot change the other tabs color  
I have use the setBackground method, but it has no effect on my urcaps

So if anyone could help @oe1 and me, it would be really helpfull

---

<div class="post-metadata">

**Author:** ![anon39663504](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@anon39663504](https://forum.universal-robots.com/u/anon39663504)\
**Post date:** [January 12, 2022, 8:43am UTC](https://forum.universal-robots.com/t/how-to-highlight-selected-tabbedpanel-in-urcap/16253/3 "2022-01-12T08:43:43Z")

</div>

Great! thanks for sharing.
