/* File: WaitImage.java * Contains: Blocking Image Loader, and defualt image creation * Author: Austin Tate * Created: Thu Jan 15 16:39:25 1998 * Updated: Wed Jun 21 17:49:25 2000 by Jeff Dalton * Copyright: (c) 1998, AIAI, University of Edinburgh */ package ix.util; import java.awt.*; import java.awt.image.*; import java.io.File; public class WaitImage { public static int DEFAULT_IMAGE_SIZE=12; /** Create in memory a default image in a nominated component. Component must have a peer when this is called. Image is a square transparent (clear black) image with a gray cross on it */ public static Image defaultImage(Component c) { Image img; MediaTracker mt = new MediaTracker(c); int sz = DEFAULT_IMAGE_SIZE; //for convenience of short variable name int[] pixels = new int[sz*sz]; //initialised to 0 (clear black) for (int i = 0; i