Universal Robots Forum

How to Highlight selected TabbedPanel in URCap?


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!

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

Great! thanks for sharing.