Picture buf = mAlbum.getPicture( sel ); mAlbum.setPicture( sel, mAlbum.getPicture( sel - 1 ) ); mAlbum.setPicture( sel - 1, buf ); picturesList.setSelectedIndex( sel - 1 );
Picture buf = getCurrentAlbum().getPicture( sel ); getCurrentAlbum().setPicture( sel, getCurrentAlbum().getPicture( sel - 1 ) ); getCurrentAlbum().setPicture( sel - 1, buf ); jPicturesList.setSelectedIndex( sel - 1 );
	public void movePictureUp() {		int sel = picturesList.getSelectedIndex();		if ( sel > 0 ) {			Picture buf = mAlbum.getPicture( sel );			mAlbum.setPicture( sel, mAlbum.getPicture( sel - 1 ) );			mAlbum.setPicture( sel - 1, buf );			picturesList.setSelectedIndex( sel - 1 );		}	}