OS.SetApplicationDockTileImage (images [index].handle); } else { OS.RestoreApplicationDockTileImage ();
public void setImages (Image [] images) {	checkWidget();	if (images == null) error(SWT.ERROR_INVALID_ARGUMENT);	for (int i = 0; i < images.length; i++) {		if (images [i] == null || images [i].isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);	}	this.images = images;	if (images != null) {		int index = -1, width = 0, height = 0;		for (int i = 0; i < images.length; i++) {			Image image = images[i];			Rectangle bounds = image.getBounds();			if (bounds.width > width || bounds.height > height) {				width = bounds.width;				height = bounds.height;				index = i;			}		}		OS.SetApplicationDockTileImage (images [index].handle);	} else {		OS.RestoreApplicationDockTileImage ();	}}