*/
public static SubstanceSkin getSkin(Component c) {
if (!SubstanceLookAndFeel.isCurrentLookAndFeel())
return null;
SubstanceComboPopup comboPopup = (SubstanceComboPopup) SwingUtilities
.getAncestorOfClass(SubstanceComboPopup.class, c);
if (comboPopup != null) {
// special case for combobox popup - take the skin
// of the combobox itself - issue 439
return getSkin(comboPopup.getCombobox());
}
JRootPane rootPane = SwingUtilities.getRootPane(c);
if (c instanceof SubstanceInternalFrameTitlePane) {