slideshowFrame = new SlideshowFrame(); if (album.getPicturesList().size() > 0) { ImageUtils.download((Picture) album.getPicturesList().get(0), getGraphicsConfiguration().getBounds().getSize(), GalleryRemote._().getCore().getMainStatusUpdate(), null); }
new Thread() { public void run() { slideshowFrame = new SlideshowFrame(); if (album.getPicturesList().size() > 0) { ImageUtils.download((Picture) album.getPicturesList().get(0), getGraphicsConfiguration().getBounds().getSize(), GalleryRemote._().getCore().getMainStatusUpdate(), null); } } }.start();
	public void contentsChanged(ListDataEvent e) {		// most likely, pictures were just added to the album. Preload the first one.		slideshowFrame = new SlideshowFrame();		if (album.getPicturesList().size() > 0) {			ImageUtils.download((Picture) album.getPicturesList().get(0), getGraphicsConfiguration().getBounds().getSize(), GalleryRemote._().getCore().getMainStatusUpdate(), null);		}	}