if (closeIcon != null)
if (closeIcon != null && closeButton != null)
  protected void setButtonIcons()  {    if (closeIcon != null)      closeButton.setIcon(closeIcon);    if (iconIcon != null)      iconButton.setIcon(iconIcon);    if (maxIcon != null)      maxButton.setIcon(maxIcon);  }