import java.applet.Applet;
import java.awt.*;

// This appears in Core Web Programming from
// Prentice Hall Publishers, and may be freely used
// or adapted. 1997 Marty Hall, hall@apl.jhu.edu.

/** Put two canvases with custom cursors side by side. */

public class CursorTest extends Applet {
  public void init() {
    int width = size().width*4/10;
    int height = size().height*9/10;
    setBackground(Color.lightGray);
    add(new CursorCanvas(width, height,
                         Frame.WAIT_CURSOR,
                         Color.white));
    add(new CursorCanvas(width, height,
                         Frame.CROSSHAIR_CURSOR,
                         Color.white));
  }
}

