g.setColor(inactiveFGColor);
g.setColor(notSelectedTextColor);
  public void paintComponent(Graphics g)  {    paintTitleBackground(g);    Font f = g.getFont();    FontMetrics fm = g.getFontMetrics(f);    if (frame.getTitle() != null && title != null)      {	Color saved = g.getColor();	if (frame.isSelected())	  g.setColor(activeFGColor);	else	  g.setColor(inactiveFGColor);	title.setText(getTitle(frame.getTitle(), fm, title.getBounds().width));	SwingUtilities.paintComponent(g, title, null, title.getBounds());	g.setColor(saved);      }  }