startProgress(0, mAlbum.sizePictures(), "Uploading pictures");
int pId = startProgress(0, mAlbum.sizePictures(), "Uploading pictures");
	public void uploadPictures() {		Log.log(Log.INFO, MODULE, "uploadPictures starting");				mGalleryComm.setURLString( (String) url.getSelectedItem() );		mGalleryComm.setUsername( username.getText() );		mGalleryComm.setPassword( password.getText() );		int index = album.getSelectedIndex();		Hashtable h = (Hashtable) mAlbumList.get( index );		mGalleryComm.setAlbum( (String) h.get( "name" ) );		picturesList.disable();		mGalleryComm.uploadFiles( mAlbum.getFileList() );		mInProgress = true;		updateUI();				startProgress(0, mAlbum.sizePictures(), "Uploading pictures");		mTimer = new javax.swing.Timer( ONE_SECOND,			new ActionListener()			{				public void actionPerformed( ActionEvent evt ) {					updateProgressValue( mGalleryComm.getUploadedCount() );					updateProgressStatus( mGalleryComm.getStatus() );					if ( mGalleryComm.done() ) {						mTimer.stop();						stopProgress( "Upload finished" );						mAlbum.clearPictures();						mInProgress = false;						picturesList.enable();						updateUI();												Log.log(Log.INFO, MODULE, "uploadPictures finished");					}				}			} );		mTimer.start();	}