code: 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");
  
      }
docs: Determines and answers the header's text foreground color. Tries to
  lookup a special color from the L&amp;F. In case it is absent, it uses
  the standard internal frame forground.
  
  @param selected
  true to lookup the active color, false for the inactive
  @return the color of the foreground text