/** Updates the list of photos displayed. */
  public void updatePhotos() {
    photosPanel.removeAll();
    drawPhotoThumbnails();

    photosPanel.repaint();
    photosPanel.revalidate();
    scrollPane.repaint();
    scrollPane.revalidate();
    contentPane.repaint();
    contentPane.revalidate();

    albumsScreen.updateAlbums();
  }
 /** Hides this window and makes the albums screen visible. */
 public void goBackToAlbumsScreen() {
   albumsScreen.setVisible(true);
   this.dispose();
 }