JInternalFrame hostFrame = (JInternalFrame) SwingUtilities
.getAncestorOfClass(JInternalFrame.class, this);
JComponent hostForColorization = hostFrame;
if (hostFrame == null) {
// try desktop icon
JDesktopIcon desktopIcon = (JDesktopIcon) SwingUtilities
.getAncestorOfClass(JDesktopIcon.class, this);
if (desktopIcon != null)
hostFrame = desktopIcon.getInternalFrame();
hostForColorization = desktopIcon;
}
// if ((hostFrame != null) && SubstanceCoreUtilities.hasColorization(
// this)) {
Color backgr = hostFrame.getBackground();