Example usage for javax.swing JFrame setIconImage

List of usage examples for javax.swing JFrame setIconImage

Introduction

In this page you can find the example usage for javax.swing JFrame setIconImage.

Prototype

public void setIconImage(Image image) 

Source Link

Usage

From source file:VASSAL.tools.ApplicationIcons.java

public static void setFor(JFrame w) {
    if (icons == null)
        return;/*  w  w  w  .j  ava  2  s .c  om*/

    if (setIconImages != null) {
        setIconImages(w);
    } else {
        // Load a single image as a fallback and watch in horror as it
        // gets scaled to ridiculous sizes.
        w.setIconImage(icons.get(0));
    }
}