int w = canvas.getIconWidth()+EXTRA; int h = canvas.getIconHeight()+EXTRA; if (w > WIN_WIDTH) w = WIN_WIDTH; if (h > WIN_HEIGHT) h = WIN_HEIGHT; setSize(w, h);
	 void setImage(BufferedImage img)	 {		canvas.display(img);		revalidate();	 }