picturesList.setModel( mAlbum ); mAlbum.setListSelectionModel(picturesList.getSelectionModel()); picturesList.getModel().addListDataListener( this ); pictureInspector.setPictures( null );
if (jPicturesList.getModel() != currentAlbum) { jPicturesList.setModel( currentAlbum ); currentAlbum.setListSelectionModel(jPicturesList.getSelectionModel()); currentAlbum.addListDataListener( this ); }  jPictureInspector.setPictures( null );
	private void updatePicturesList( Album album ) {		mAlbum = album;		if (mAlbum == null) {			// fake empty album to clear the list			picturesList.setModel( new Album() );		} else {			picturesList.setModel( mAlbum );			mAlbum.setListSelectionModel(picturesList.getSelectionModel());			picturesList.getModel().addListDataListener( this );			pictureInspector.setPictures( null );		}	}