Picture p = mAlbum.getPicture( index ); File f = p.getSource();  if ( GalleryRemote.getInstance().properties.getShowThumbnails() ) { ImageIcon icon = getThumbnail( p ); setIcon( icon ); setIconTextGap( 4 + GalleryRemote.getInstance().properties.getThumbnailSize().width - icon.getIconWidth() );
if (value != null && index != -1) { Picture p = mAlbum.getPicture( index ); File f = p.getSource();  if ( GalleryRemote.getInstance().properties.getShowThumbnails() ) { ImageIcon icon = getThumbnail( p ); setIcon( icon ); setIconTextGap( 4 + GalleryRemote.getInstance().properties.getThumbnailSize().width - icon.getIconWidth() ); }  String text = f.getName(); if ( GalleryRemote.getInstance().properties.getShowPath() ) { text += " [" + f.getParent() + "]"; } setText( text ); } else { setText("dummy");
		public Component getListCellRendererComponent(				JList list, Object value, int index,				boolean selected, boolean hasFocus ) {			super.getListCellRendererComponent( list, value, index, selected, hasFocus );			Picture p = mAlbum.getPicture( index );			File f = p.getSource();			if ( GalleryRemote.getInstance().properties.getShowThumbnails() ) {				ImageIcon icon = getThumbnail( p );				setIcon( icon );				setIconTextGap( 4 + GalleryRemote.getInstance().properties.getThumbnailSize().width - icon.getIconWidth() );			}			String text = f.getName();			if ( GalleryRemote.getInstance().properties.getShowPath() ) {				text += " [" + f.getParent() + "]";			}			setText( text );			return this;		}