code: public void setFrameIcon(Icon newIcon) {
          Icon oldIcon = getFrameIcon();
          titleLabel.setIcon(newIcon);
          firePropertyChange("frameIcon", oldIcon, newIcon);
      }
docs: Sets a new frame icon.
  
  @param newIcon
  the icon to be set