protected Color getTextForeground(boolean selected)
    {
        Color c = UIManager
                .getColor(selected ? "SimpleInternalFrame.activeTitleForeground"
                        : "SimpleInternalFrame.inactiveTitleForeground");
        if (c != null) {
            return c;
        }
        return UIManager
                .getColor(selected ? "InternalFrame.activeTitleForeground"
                        : "Label.foreground");

    }