public void waitForImage(java.awt.Image image, String info) {
        //System.out.println ("enter waitforimage" +manager.displayContainer);

        if (image == null)
            throw new RuntimeException("Image " + info + " is null");

        //System.out.println("wait for img: " + info);
        if (manager.tracker == null)
            manager.tracker =
                new java.awt.MediaTracker(
                    ApplicationManager.manager.awtContainer);

        int id = manager.trackerID;
        try {

            if (lastWait != image) {
                id = ++manager.trackerID;
                manager.tracker.addImage(image, id);
                lastWait = image;
            }

            //   System.out.println("status of ID "+id+" is:" +manager.tracker.statusID(id, true));

            // manager.awtContainer.getGraphics().drawImage(image, 0, 0, null);

            manager.tracker.waitForID(id);
            //            System.out.println("ok for image "+info);

            if (manager.tracker.isErrorID(id)) {
                throw new RuntimeException(
                    "error loading image '"
                        + info
                        + "'; tracker: "
                        + manager.tracker);
                //Thread.sleep(100);
            }

            manager.tracker.removeImage(image);

        }
        catch (InterruptedException ie) {
        }

        //System.out.println("image ok: " + info);
        //System.out.println ("leave waitforimage");
    }