1,
thickness,
	public void paint(Graphics g) {		//Log.log(Log.LEVEL_TRACE, MODULE, "Paint");		if (paintPass < 10) {			paintPass++;			Component c = getContext().getComponent();			ImageLoaderUtil.setSlideshowFont(c);			g.setFont(c.getFont());			String message = grss.hasSettings?"Preparing slideshow...":"Please pick the Settings for your Gallery";			int width = (int) c.getBounds().getWidth();			int height = (int) c.getBounds().getHeight();			ImageLoaderUtil.paintAlignedOutline(					g,					message,					width / 2,					height / 2,					1,					20,					width);			return;		}		if (grss.newImage) {			/*if (firstPaint) {				firstPaint = false;				Component c = getContext().getComponent();				ImageLoaderUtil.setSlideshowFont(c);				g.setFont(c.getFont());			}*/			grss.newImage = false;			Log.log(Log.LEVEL_TRACE, MODULE, "Really Paint!");			Component c = getContext().getComponent();			Image img = grss.loader.imageShowNow;			int width = (int) c.getBounds().getWidth();			int height = (int) c.getBounds().getHeight();			int dx = (width - img.getWidth(c)) / 2;			int dy = (height - img.getHeight(c)) / 2;			g.drawImage(img, dx, dy, c);			g.setColor(GalleryRemote._().properties.getColorProperty(PreferenceNames.SLIDESHOW_COLOR));			g.fillRect(0, 0, dx, height);			g.fillRect(width - dx, 0, width, height);			g.fillRect(dx, 0, width - dx, dy);			g.fillRect(dx, height - dy, width - dx, height);			String caption =					ImageLoaderUtil.stripTags(HTMLEscaper.unescape(grss.loader.pictureShowNow.getCaption()));			if (caption != null && caption.length() != 0) {				ImageLoaderUtil.paintAlignedOutline(						g,						caption,						width / 2,						height - 10,						1,						30,						width);			}		}	}