* Updates the album labels if the current album selected changes.
*
*/
private void updateAlbumLabelPanel() {
String albumname = (String) albumsJL.getSelectedValue();
Album album = control.backend.getAlbum(albumname);
albumNameJL.setText(albumname);
if(album == null){
albumNumPhotosJL.setText("");
albumStartJL.setText("");
albumEndJL.setText("");
}else if(album.getPhotoList().size() == 0) {
albumNumPhotosJL.setText("0");
albumStartJL.setText("...");
albumEndJL.setText("...");
} else {
albumNumPhotosJL.setText(album.getPhotoList().size() + "");
albumStartJL.setText(album.start.toString());
albumEndJL.setText(album.end.toString());
}
}