SubstanceFillPainter fillPainter = SubstanceCoreUtilities
.getFillPainter(tabPane);
SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
.getBorderPainter(tabPane);
SubstanceButtonShaper shaper = SubstanceCoreUtilities
.getButtonShaper(tabPane);
Component compForBackground = tabPane.getTabComponentAt(tabIndex);
if (compForBackground == null)
compForBackground = tabPane.getComponentAt(tabIndex);
if (compForBackground == null)
compForBackground = tabPane;
Color tabColor = compForBackground.getBackground();
HashMapKey key = SubstanceCoreUtilities.getHashKey(width, height,
isSelected, cyclePos, tabPlacement, fillPainter
.getDisplayName(), borderPainter.getDisplayName(),
shaper.getDisplayName(), tabPlacement == SwingConstants.BOTTOM,
side.name(), colorScheme.getDisplayName(), colorScheme2
.getDisplayName(), borderScheme.getDisplayName(),
borderScheme2.getDisplayName(), tabColor);
SubstanceSkin skin = SubstanceCoreUtilities.getSkin(tabPane);