if (p.getAlbum().getGallery().getComm( mf ).hasCapability(GalleryCommCapabilities.CAPA_UPLOAD_CAPTION)) {
if (p.getAlbum().getGallery().getComm( mf.jStatusBar ).hasCapability(GalleryCommCapabilities.CAPA_UPLOAD_CAPTION)) {
	public void setPictures( Object[] pictures ) {		//Log.log(Log.TRACE, MODULE, "setPictures " + pictures);		//Log.logStack(Log.TRACE, MODULE);		this.pictures = pictures;		jIcon.setPreferredSize(				new Dimension( 0,						GalleryRemote.getInstance().properties.getThumbnailSize().height				+ emptyIconHeight				+ jIcon.getIconTextGap() ) );		if ( pictures == null || pictures.length == 0 ) {			jIcon.setText("no picture selected");			jIcon.setIcon( ImageUtils.defaultThumbnail );			jPath.setText( "" );			jAlbum.setText( "" );			jCaption.setText( "" );			jCaption.setEditable(false);			jCaption.setBackground(UIManager.getColor("TextField.inactiveBackground"));			jSize.setText( "" );			jUpButton.setEnabled(false);			jDownButton.setEnabled(false);			jDeleteButton.setEnabled(false);			jRotateLeftButton.setEnabled(false);			jRotateRightButton.setEnabled(false);			jFlipButton.setEnabled(false);			removeExtraFields();		} else if ( pictures.length == 1) {			Picture p = (Picture) pictures[0];			jIcon.setText( p.getSource().getName() );			jIcon.setIcon( mf.getThumbnail( p ) );			jPath.setText( p.getSource().getParent() );			jAlbum.setText( p.getAlbum().getTitle() );			if (p.getAlbum().getGallery().getComm( mf ).hasCapability(GalleryCommCapabilities.CAPA_UPLOAD_CAPTION)) {				jCaption.setText( p.getCaption() );				jCaption.setEditable(true);				jCaption.setBackground(UIManager.getColor("TextField.background"));			}			jSize.setText( NumberFormat.getInstance().format(					(int) p.getFileSize() ) + " bytes" );			jUpButton.setEnabled(true && isEnabled());			jDownButton.setEnabled(true && isEnabled());			jDeleteButton.setEnabled(true && isEnabled());			jRotateLeftButton.setEnabled(true && isEnabled());			jRotateRightButton.setEnabled(true && isEnabled());			jFlipButton.setEnabled(true && isEnabled());			addExtraFields(p);		} else {			Picture p = (Picture) pictures[0];			jIcon.setText( pictures.length + " elements selected" );			jIcon.setIcon( ImageUtils.defaultThumbnail );			jPath.setText( "" );			jAlbum.setText( p.getAlbum().getTitle() );			jCaption.setText( "" );			jCaption.setEditable(false);			jCaption.setBackground(UIManager.getColor("TextField.inactiveBackground"));			jSize.setText( NumberFormat.getInstance().format(					Album.getObjectFileSize(pictures) ) + " bytes" );			jUpButton.setEnabled(false);			jDownButton.setEnabled(false);			jDeleteButton.setEnabled(true && isEnabled());			jRotateLeftButton.setEnabled(true && isEnabled());			jRotateRightButton.setEnabled(true && isEnabled());			jFlipButton.setEnabled(true && isEnabled());			removeExtraFields();		}	}