public void ancestorAdded(AncestorEvent event) {
				KeyboardFocusManager.getCurrentKeyboardFocusManager()
						.addPropertyChangeListener("focusOwner", focusHandler); // 2006/08/21
																				// :
																				// back
																				// to
																				// life
																				// (was
																				// in
																				// comments
																				// in
																				// 2.1.0)
				// 2006/12/19 now integrated to ancestor hierarchy to avoid gc
				// leaks

				Window w = SwingUtilities
						.getWindowAncestor(DockingDesktop.this);
				w.addWindowListener(windowListener);
				DockingDesktop.this.context.registerWindow(w); // first
																// activation
																// required to
																// register the
																// window
				if (floatingContainerFollowParentWindow) {
					w.addComponentListener(windowMovementListener);
				}
			}