public void componentResized(ComponentEvent e) {

			Dimension newSize = e.getComponent().getSize();

			newSize.width = (newSize.width > 0) ? newSize.width : 1;
			newSize.height = (newSize.height > 0) ? newSize.height : 1;

			if ((offGraphics == null) || (newSize.width != offDimension.width)
					|| (newSize.height != offDimension.height)) {

				offImage = createImage(newSize.width, newSize.height);

				offGraphics = offImage.getGraphics();
				offGraphics.setColor(getBackground());
				offDimension = newSize;
			}
		}