Hashtable h = (Hashtable) currentGallery.getAlbumList().get( index ); mGalleryComm.setAlbum( (String) h.get( "name" ) );
mGalleryComm.setAlbum( currentGallery.getSelectedAlbum().getName() );
	public void uploadPictures() {		Log.log(Log.INFO, MODULE, "uploadPictures starting");		mGalleryComm.setURLString( currentGallery.getUrl()  );		mGalleryComm.setUsername( currentGallery.getUsername() );		mGalleryComm.setPassword( currentGallery.getPassword() );		int index = album.getSelectedIndex();		Hashtable h = (Hashtable) currentGallery.getAlbumList().get( index );		mGalleryComm.setAlbum( (String) h.get( "name" ) );		picturesList.disable();		mGalleryComm.uploadFiles( mAlbum.getFileList() );		mInProgress = true;		resetUIState();		int pId = startProgress(0, mAlbum.sizePictures(), "Uploading pictures");		mTimer = new javax.swing.Timer( ONE_SECOND,			new ActionListener()			{				int pId = 0;				public void actionPerformed( ActionEvent evt ) {					updateProgressValue( pId, mGalleryComm.getUploadedCount() );					updateProgressStatus( pId, mGalleryComm.getStatus() );					if ( mGalleryComm.done() ) {						mTimer.stop();						stopProgress( pId, "Upload finished" );						mAlbum.clearPictures();						mInProgress = false;						picturesList.enable();						resetUIState();						Log.log(Log.INFO, MODULE, "uploadPictures finished");					}				}				public ActionListener setProgressId(int pId) {					this.pId = pId;					return this;				}			}.setProgressId(pId) );		mTimer.start();	}