public Page(int x, Dimension size) {
			this.size = size;
			bi = new java.awt.image.BufferedImage(size.width, size.height, java.awt.image.BufferedImage.TYPE_INT_RGB);
			n = x;
			pf = pg.getPageFormat(n);
			Graphics g = bi.getGraphics();
			Color c = g.getColor();
			g.setColor(Color.white);
			g.fillRect(0, 0, (int)pf.getWidth(), (int)pf.getHeight());
			g.setColor(c);
			try {
				g.clipRect(0, 0, (int)pf.getWidth(), (int)pf.getHeight());
				pg.getPrintable(n).print(g, pf, n);
			}
				catch(Exception ex) { }
				this.setIcon(new ImageIcon(bi));
		}