setWindowSize(img.getWidth()+4*START, img.getHeight()+4*START); }
w += 2*START; h += 2*START; setWindowSize(w, h); }
     void setImage(BufferedImage img)     {        if (!active) {            int w = img.getWidth()+2*START;             int h  = img.getHeight()+2*START;            setSizePaintedComponents(new Dimension(w, h));            setWindowSize(img.getWidth()+4*START, img.getHeight()+4*START);        }         canvas.paintImage(img);        active = true;     }