Originally Posted by MW130
First, explain (or post) the code you use to load
the image. Many times the image loading code is not much appropriate (and I always have a suspect about this ....).
Second, setIconImage sets only one Image. Unfortunately, the O.S. can show the icon in several locations and in different sizes (e.g. small in the window title bar, larger in the system task bar, etc...). For this reason, since Java 6 is available the method (in any Window subclass):
public void setIconImages(List<? extends Image> icons)
to set more icons in different sizes.