if (album.getSize() > 0) { ImageUtils.download((Picture) album.getPicturesList().get(0), getGraphicsConfiguration().getBounds().getSize(), GalleryRemote._().getCore().getMainStatusUpdate(), null);
if (info.slideshowFrom != null) { for (int i = 0; i < picturesList.size(); i++) { if (info.slideshowFrom.equals(((Picture) picturesList.get(i)).getUniqueId())) { Log.log(Log.LEVEL_TRACE, MODULE, "Starting slideshow from index " + i); index = i; slideshowFrame.wantIndex = i; break; } } }  if (album.getSize() > index) { ImageUtils.download((Picture) picturesList.get(index), getGraphicsConfiguration().getBounds().getSize(), GalleryRemote._().getCore().getMainStatusUpdate(), null);
	public void contentsChanged(ListDataEvent e) {		if (album.isHasFetchedImages()) {			Log.log(Log.LEVEL_TRACE, MODULE, "Pictures were just added to the album. Preload the first one.");			new Thread() {				public void run() {					slideshowFrame = new SlideshowFrame();					if (album.getSize() > 0) {						ImageUtils.download((Picture) album.getPicturesList().get(0), getGraphicsConfiguration().getBounds().getSize(), GalleryRemote._().getCore().getMainStatusUpdate(), null);					} else {						JOptionPane.showMessageDialog(GRAppletSlideshow.this, GRI18n.getString(MODULE, "emptyAlbum"));					}				}			}.start();		}	}