I’m a begginer in docking frames (just started yesterday), and was able to do useful stuff with it already. It is really a very good piece of software.
But there is something I was not able to do: setting a different color for the background of the tab of specific docks. I’m using CControl with default content area.
I tried to do this:
DefaultSingleCDockable dock = new DefaultSingleCDockable("someid", "Title", someComponent);
dock.getColorMap().setColor(ColorMap.COLOR_KEY_TAB_BACKGROUND, Color.RED);
but it didn’t work.
Setting other color keys did work, like COLOR_KEY_TITLE_BACKGROUND, our COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND. But with the tab background I had no success.
Does anybody have an idea on how to set a different color for the tab of a specific dockable when it is stacked?
Which theme are you using? Unfortunately the background color of tabs cannot be changed in the default theme (I never figured out how to set the color on a JTabbedPane).
You can change the theme with CControl.setTheme(ThemeMap. “the theme you like” )