public void actionPerformed(ActionEvent e) {
			
			String action = e.getActionCommand();
			
			if(action.equals("Next")){
								
				SlideShow.this.counter++;
				
				if(SlideShow.this.counter==SlideShow.this.numberPhotos)
					SlideShow.this.counter=0;
				
				SlideShow.this.slideArea.remove(picture);
				SlideShow.this.slideArea.remove(SlideShow.this.nextBtn);
				SlideShow.this.picture = SlideShow.this.photosEffect.get(SlideShow.this.counter);
				SlideShow.this.slideArea.add(picture);
				SlideShow.this.slideArea.add(SlideShow.this.nextBtn);
				if(SlideShow.this.photos!=null){
				SlideShow.this.photoNameLbl.setText(SlideShow.this.photosSlide.get(SlideShow.this.counter).photo.getFilename());
				SlideShow.this.captionLbl.setText(SlideShow.this.photosSlide.get(SlideShow.this.counter).photo.getCaption());
				SlideShow.this.dateLbl.setText(SlideShow.this.photosSlide.get(SlideShow.this.counter).photo.getStringDate());
				}
				else{
				SlideShow.this.photoNameLbl.setText(SlideShow.this.photosSlideSearchResult.get(SlideShow.this.counter).getFilename());
				SlideShow.this.captionLbl.setText(SlideShow.this.photosSlideSearchResult.get(SlideShow.this.counter).getCaption());
				SlideShow.this.dateLbl.setText(SlideShow.this.photosSlideSearchResult.get(SlideShow.this.counter).getStringDate());	
				}
				SlideShow.this.repaint();

				
			}
			
			if(action.equals("Previous")){
				
				SlideShow.this.counter--;	
				
				if(SlideShow.this.counter==-1)
					SlideShow.this.counter=SlideShow.this.numberPhotos-1;

				SlideShow.this.slideArea.remove(picture);
				SlideShow.this.slideArea.remove(SlideShow.this.nextBtn);
				SlideShow.this.picture = SlideShow.this.photosEffect.get(SlideShow.this.counter);
				SlideShow.this.slideArea.add(picture);
				SlideShow.this.slideArea.add(SlideShow.this.nextBtn);
				if(SlideShow.this.photos!=null){
					SlideShow.this.photoNameLbl.setText(SlideShow.this.photosSlide.get(SlideShow.this.counter).photo.getFilename());
					SlideShow.this.captionLbl.setText(SlideShow.this.photosSlide.get(SlideShow.this.counter).photo.getCaption());
					SlideShow.this.dateLbl.setText(SlideShow.this.photosSlide.get(SlideShow.this.counter).photo.getStringDate());
				}
				else{
					SlideShow.this.photoNameLbl.setText(SlideShow.this.photosSlideSearchResult.get(SlideShow.this.counter).getFilename());
					SlideShow.this.captionLbl.setText(SlideShow.this.photosSlideSearchResult.get(SlideShow.this.counter).getCaption());
					SlideShow.this.dateLbl.setText(SlideShow.this.photosSlideSearchResult.get(SlideShow.this.counter).getStringDate());	
				}
				SlideShow.this.slideArea.repaint();
				SlideShow.this.slideArea.revalidate();
		
				
			}
			
			if(action.equals("Back")){
				SlideShow.this.photosScreen.setVisible(true);
				SlideShow.this.setVisible(false);
			}
			
		}