public void setFamily(Family family) {
		Person husband = family.getHusband();
		Person wife = family.getWife();

		lblCaption.setText((husband == null || husband.getName() == null ? "?"
				: husband.getName().getFamilyName())
				+ "/"
				+ (wife == null || wife.getName() == null ? "?" : wife
						.getName().getFamilyName()));

		ppFather.setPerson(husband);
		ppMother.setPerson(wife);
		
		int nChildren = family.getChildCount();
		
		if (ppChildren.size() < nChildren)
			for (int i = ppChildren.size(); i <= nChildren; i++)
				ppChildren.add(new PersonPanel());
		
		pnlChildren.removeAll();
		
		for (int i = 0; i < nChildren; i++) {
			Person child = family.getChild(i+1);
			PersonPanel pp = ppChildren.elementAt(i);
			pp.setPerson(child);
			pnlChildren.add(pp);
		}
			
		validate();
	}