updateProgress( progress.getMinimum() );
setProgress( progress.getMinimum() );
	public void uploadPictures() {		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();		progress.setMaximum( mAlbum.sizePictures() );		progress.setStringPainted( true );		mTimer = new javax.swing.Timer( ONE_SECOND,			new ActionListener()			{				public void actionPerformed( ActionEvent evt ) {					updateProgress( mGalleryComm.getUploadedCount() );					updateStatus( mGalleryComm.getStatus() );					if ( mGalleryComm.done() ) {						mTimer.stop();						updateProgress( progress.getMinimum() );						progress.setStringPainted( false );						mAlbum.clearPictures();						mInProgress = false;						picturesList.enable();						updateUI();					}				}			} );		mTimer.start();	}