if ( GalleryRemote.getInstance().properties.getShowPreview() ) { if ( sel != -1 ) { String filename = ( mAlbum.getPicture( sel ).getSource() ).getPath(); previewFrame.displayFile( filename ); thumbnailCache.preloadThumbnailFirst( filename ); } else { previewFrame.displayFile( null ); }  if ( !previewFrame.isVisible() ) { previewFrame.setVisible( true ); }
if ( sel != -1 ) { String filename = ( mAlbum.getPicture( sel ).getSource() ).getPath(); thumbnailCache.preloadThumbnailFirst( filename );
	public void valueChanged( ListSelectionEvent e ) {		//Log.log(Log.TRACE, MODULE, "List selection changed: " + e);		int sel = picturesList.getSelectedIndex();		if ( GalleryRemote.getInstance().properties.getShowPreview() ) {			if ( sel != -1 ) {				String filename = ( mAlbum.getPicture( sel ).getSource() ).getPath();				previewFrame.displayFile( filename );				thumbnailCache.preloadThumbnailFirst( filename );			} else {				previewFrame.displayFile( null );			}			if ( !previewFrame.isVisible() ) {				previewFrame.setVisible( true );			}		}		resetUIState();	}