org.nakedobjects.nos.client.dnd.viewer.AWTUtilities Maven / Gradle / Ivy
The newest version!
package org.nakedobjects.nos.client.dnd.viewer;
import java.awt.Frame;
import java.awt.Image;
import java.net.URL;
public class AWTUtilities {
public static void addWindowIcon(final Frame window, final String file) {
URL url = ViewerFrame.class.getResource("/" + "images/" + file);
if (url != null) {
Image image = java.awt.Toolkit.getDefaultToolkit().getImage(url);
if (image != null) {
window.setIconImage(image);
}
}
}
}
// Copyright (c) Naked Objects Group Ltd.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy