UIDefaults defaults = UIManager.getLookAndFeelDefaults();  title.setFont(defaults.getFont("InternalFrame.titleFont")); selectedTextColor = defaults.getColor("InternalFrame.activeTitleForeground"); selectedTitleColor = defaults.getColor("InternalFrame.activeTitleBackground"); notSelectedTextColor = defaults.getColor("InternalFrame.inactiveTitleForeground"); notSelectedTitleColor = defaults.getColor("InternalFrame.inactiveTitleBackground");
title.setFont(UIManager.getFont("InternalFrame.titleFont")); selectedTextColor = UIManager.getColor("InternalFrame.activeTitleForeground"); selectedTitleColor = UIManager.getColor("InternalFrame.activeTitleBackground"); notSelectedTextColor = UIManager.getColor("InternalFrame.inactiveTitleForeground"); notSelectedTitleColor = UIManager.getColor("InternalFrame.inactiveTitleBackground");
  protected void installDefaults()  {    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    title.setFont(defaults.getFont("InternalFrame.titleFont"));    selectedTextColor = defaults.getColor("InternalFrame.activeTitleForeground");    selectedTitleColor = defaults.getColor("InternalFrame.activeTitleBackground");    notSelectedTextColor = defaults.getColor("InternalFrame.inactiveTitleForeground");    notSelectedTitleColor = defaults.getColor("InternalFrame.inactiveTitleBackground");      closeIcon = UIManager.getIcon("InternalFrame.closeIcon");    iconIcon = UIManager.getIcon("InternalFrame.iconifyIcon");    maxIcon = UIManager.getIcon("InternalFrame.maximizeIcon");  }