mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
27.10.2007 0650329dd85ec3cdc30c280260c41e9f1581bc28
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/Utilities.java
@@ -27,6 +27,8 @@
package org.opends.quicksetup.ui;
import org.opends.quicksetup.util.Utils;
import javax.swing.*;
import javax.swing.text.JTextComponent;
import java.awt.*;
@@ -74,4 +76,20 @@
    return panel;
  }
  /**
   * Sets a frames image icon to the standard OpenDS icon appropriate
   * for the running platform.
   *
   * @param frame for which the icon will be set
   */
  static public void setFrameIcon(JFrame frame) {
    UIFactory.IconType ic;
    if (Utils.isMacOS()) {
      ic = UIFactory.IconType.MINIMIZED_MAC;
    } else {
      ic = UIFactory.IconType.MINIMIZED;
    }
    frame.setIconImage(UIFactory.getImageIcon(ic).getImage());
  }
}